Skip to content

Use of deprecated type hints - PEP 585 #361

@jeertmans

Description

@jeertmans

Hello,

I am a frequent user of your library, but I also like to enforce good type hints, using type checkers like beartype.

However, when using types from your library, it appears that some of them use deprecated type hints from the built-in typing module, like typing.Iterator that has been moved to collections.abc.Iterator.

While this is not an issue at the moment (except that beartype complains about it, see https://beartype.readthedocs.io/en/latest/api_roar/#pep-585-deprecations), this will eventually become one when Python 3.14 will come out (in ~ 1 year I guess).

Could you consider updating the type hint to make your library future-compatible (at least to some extents)? Of course, I can help with this and make a PR.

Thanks for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions