Skip to content

UP036 doesn't handle three digit version numbers correctly #16082

@henryiii

Description

@henryiii

Description

The following check:

if sys.version_info < (3, 8, 7):

Should not be removed for Python >=3.8, but currently, it is - the check seems to ignore the third digit entirely. It should only be removed for >=3.9. Occurs in Python packaging related repos like scikit-build-core due to a bug in sysconfig fixed in 3.8.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions