Skip to content

Instantly share code, notes, and snippets.

@izikeros
Last active November 4, 2022 09:26
Show Gist options
  • Select an option

  • Save izikeros/946d65c15190b7cf48590f629119ab60 to your computer and use it in GitHub Desktop.

Select an option

Save izikeros/946d65c15190b7cf48590f629119ab60 to your computer and use it in GitHub Desktop.
mypy configuration for ignoring libraries with missing stubs
[mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
[mypy-tests.*]
disallow_untyped_defs = false
[mypy-numpy.*]
ignore_missing_imports = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment