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

Feature request: backport typing fix in 3.11 to evaluate strings as forward refs in PEP 585 generics #10

@egparedes

Description

@egparedes

Python 3.11 also added a bug fix to transform type strings to ForwardRefs when evaluating generics args here:
bpo-41370: Evaluate strings as forward refs in PEP 585 generics #30900

Would you consider adding that fix to this package? It doesn't seem like a complicated feature to add and it would help to deal with typing annotations in a more uniform way across different python versions.

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