Skip to content

Mypy crashes if there is no 'function' or 'module' in builtins #2765

Closed
@vlasovskikh

Description

@vlasovskikh

You can use types.FunctionType instead of builtins.function. See the original crash in the CI results here python/typeshed#876.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions