Skip to content

mypy 0.920 has incorrect typing for signal handler #6592

@gitpushdashf

Description

@gitpushdashf

Upgrading from mypy 0.910 to 0.920, I get this:

error: Argument 2 to "signal" has incompatible type "Callable[[int, FrameType], None]"; expected "Union[Callable[[int, Optional[FrameType]], Any], int, Handlers, None]"

https://docs.python.org/3/library/signal.html#signal.signal

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