Skip to content

apt: fix mypy in apt.progress.text.AcquireProgress

Michael Vogt requested to merge mvo/python-apt:fix-mypy-mypy942 into main

Later versions of mypy fail with:

apt/progress/text.py:260: error: Argument 2 to "signal" has incompatible type "Union[Callable[[Signals, FrameType], None], int, Handlers, None]"; expected "Union[Callable[[int, Optional[FrameType]], Any], int, Handlers, None]"

This commit updates the code.

Merge request reports

Loading