这是indexloc提供的服务,不要输入任何密码
Skip to content

Trigger UP043 on <3.13 with __future__.annotations #19566

@Gallaecio

Description

@Gallaecio

Summary

I wonder if this could be considered part of #18502. It may also be related to #19402 and #19359. But I am not sure, and none of those mention this rule specifically.

UP043 seems to only trigger in Python 3.13+. However, it seems that (as long as you are using from __future__ import annotations?) the new syntax works in older versions. I tried 3.9, and things work both at run time (at least as long as you do not try to resolve the type?) and when running mypy.

Version

0.12.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing 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