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

Fix typing of Parser's unbound methods #194

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

masklinn
Copy link
Contributor

All credit due to "Finite State Machine" on the typing gitter, they're the one who had the idea of trying to type self in case that would make mypy happy. Which it absolutely does.

This does make that use pattern easier to recommend, as it's fully typed as well.

@masklinn masklinn enabled auto-merge (rebase) February 28, 2024 15:56
All credit due to "Finite State Machine" on the typing gitter, they're
the one who had the idea of trying to type `self` in case that would
make mypy happy. Which it absolutely does.

This does make that use pattern easier to recommend, as it's fully
typed as well.
@masklinn masklinn merged commit 5595b2b into ua-parser:master Feb 28, 2024
29 checks passed
@masklinn masklinn deleted the fulltyping branch February 28, 2024 16:28
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.

1 participant