Skip to content

use builtin_type if it exists, otherwise named_type#234

Merged
ilevkivskyi merged 1 commit intodropbox:masterfrom
shawnwall:mypy-builtin-named-type-futureproof
Jan 26, 2022
Merged

use builtin_type if it exists, otherwise named_type#234
ilevkivskyi merged 1 commit intodropbox:masterfrom
shawnwall:mypy-builtin-named-type-futureproof

Conversation

@shawnwall
Copy link
Contributor

resolves #232

  • mypy .930 deprecated builtin_type in favor of named_type, but brought it back in .931
  • this patch uses hasattr() to check for existence of builtin_type, and if not present, use named_type for future proofing code

@ilevkivskyi ilevkivskyi merged commit 80f8932 into dropbox:master Jan 26, 2022
@shawnwall shawnwall deleted the mypy-builtin-named-type-futureproof branch January 26, 2022 12:19
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.

mypy 0.930 breaks the sqlmypy plugin with an INTERNAL ERROR

2 participants