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 type-var error, in newer versions of mypy #275

Merged
merged 1 commit into from Oct 3, 2022
Merged

Conversation

john-kurkowski
Copy link
Owner

mypy complains that get should be generic in order to return a generic. The method is in fact dynamic: the cache can contain multiple types. The caller must cast to the type it thinks it is get-ing.

mypy complains that `get` should be generic in order to return a generic. The method is in fact dynamic: the cache can contain multiple types. The caller must cast to the type it thinks it is `get`-ing.
@john-kurkowski john-kurkowski merged commit df46d34 into master Oct 3, 2022
@john-kurkowski john-kurkowski deleted the fix-type-var branch October 3, 2022 18:57
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 10, 2022
https://build.opensuse.org/request/show/1035015
by user mia + dimstar_suse
- Update to 3.4.0
Features
  * Add method extract_urllib to extract from a
    urllib.parse.{ParseResult,SplitResult}
    #gh/john-kurkowski/tldextract#274
Bugfixes
  * Fix internal type-var error, in newer versions of mypy
    #gh/john-kurkowski/tldextract#275
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

1 participant