vermin icon indicating copy to clipboard operation
vermin copied to clipboard

pathlib.walk() only available since 3.12

Open bulletmark opened this issue 11 months ago • 1 comments

I added pathlib.walk() to my code and expected vermin to flag the updated code as requiring 3.12 minimum but it did not change from my previous 3.8 minimum.

Version is 1.6.0 installed from Arch AUR, running under Python 3.13.1.

bulletmark avatar Feb 09 '25 11:02 bulletmark

Here you are actually using pathlib.Path.walk() which does have a rule for 3.12. Hmm.

AttributeError: module 'pathlib' has no attribute 'walk'

If I use something like this:

from pathlib import Path
Path("/").walk()

I get this:

!2, 3.12     /tmp/test.py
  L1 C5: 'pathlib' module requires !2, 3.4
  L2: 'pathlib.Path.walk' member requires !2, 3.12

Minimum required versions: 3.12
Incompatible versions:     2

Could you show me the code you used to get the incorrect result? Thank you.

netromdk avatar Sep 25 '25 07:09 netromdk