Skip to content

Assorted cleanup and a few type hints#56

Merged
jelly merged 6 commits intovarlink:masterfrom
behrmann:typing
Apr 23, 2025
Merged

Assorted cleanup and a few type hints#56
jelly merged 6 commits intovarlink:masterfrom
behrmann:typing

Conversation

@behrmann
Copy link
Collaborator

Enough type hints to not make mypy run away in its stock config.

In the two places hasattr is not defined and will fall back to the function
hasattr, which in the boolean context will be truthy and can therefore be
exchanged for an else-clause.
@jelly
Copy link
Collaborator

jelly commented Apr 22, 2025

Can we also already run mypy in CI with these changes?

@behrmann
Copy link
Collaborator Author

Yes. It's not very useful at the moment, but I'll add it.

@jelly jelly merged commit 1feff64 into varlink:master Apr 23, 2025
8 checks passed
@jelly
Copy link
Collaborator

jelly commented Apr 23, 2025

Thanks!

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.

2 participants