Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better type hints for NonDataProperty #13

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

dimbleby
Copy link
Contributor

This stops mypy complaining when you run it in jaraco/keyring

currently per the pipelines:

________________________ keyring/backends/libsecret.py _________________________
46: error: Argument 1 to "NonDataProperty" has incompatible type "Callable[[Keyring], Any]"; expected "Callable[[object], object]"  [arg-type]

@bswck
Copy link
Contributor

bswck commented Mar 29, 2024

Great improvement. Should have thought about it. Thanks @dimbleby!

mypy.ini Outdated Show resolved Hide resolved
@jaraco jaraco merged commit aa9e788 into jaraco:main Mar 29, 2024
13 of 14 checks passed
@jaraco
Copy link
Owner

jaraco commented Mar 31, 2024

Turns out this change broke the docs build. I fixed it in 0b64201.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants