jaraco / keyring

MIT License
1.24k stars 152 forks source link

mypy failing with spurious error (Argument 1 to "filter" has incompatible type) #659

Closed jaraco closed 9 months ago

jaraco commented 9 months ago

Sometime since Oct 8, something has changed in mypy to cause it to start failing with this error:

____________________________________________________________________ keyring/core.py _____________________________________________________________________
102: error: Argument 1 to "filter" has incompatible type "Callable[[KeyringBackend], bool] | None"; expected "None"  [arg-type]

That code looks perfectly fine to me:

https://github.com/jaraco/keyring/blob/c65f00dc5c5ccfc2c98ca7061054a7ae918ba437/keyring/core.py#L102

jaraco commented 9 months ago

I don't have the energy to fix this upstream, so I'm just disabling it.