Skip to content

UP035: Rewrite typing.Callable to collections.abc.Callable for Python 3.9.2+ #2690

@ngnpope

Description

@ngnpope

There was a bug in Python 3.9.0 and 3.9.1 which resulted in pyupgrade only making this rewrite on 3.10+.

The issue was resolved in Python 3.9.2 and we're now on Python 3.9.16. It seems a shame to not support this.

See asottile/pyupgrade#677 for context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions