Skip to content

Path.exists(follow_symlinks=True) isn't detected as requiring 3.12 #327

@peace-maker

Description

@peace-maker

Describe the bug
Path.exists has a follow_symlinks keyword argument since 3.12. There is a rule for this too as far as I can tell. But code using this argument isn't flagged as requiring Python 3.12.

To Reproduce

from pathlib import Path
print(Path.cwd().exists(follow_symlinks=True))
vermin --no-tips -t=3.10- --violations ./path_exists.py
Detecting python files..
Analyzing using 32 processes..
Minimum required versions: 3.4
Incompatible versions:     2.x

Expected behavior
vermin should deduce the minimum required version to be 3.12 and show the violation of using the follow_symlinks keyword argument.

Environment (please complete the following information):
Vermin 1.8.0

Additional context
This came up while linting pwndbg in a Python 3.10 environment using mypy. We expected vermin to catch this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions