Guest User

.mypy.ini

a guest
Jul 9th, 2021
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [mypy]
  2. # Disallow dynamic typing
  3. disallow_any_unimported = True
  4. disallow_any_generics = True
  5. disallow_subclassing_any = True
  6.  
  7. # Untyped definitions and calls
  8. disallow_untyped_calls = True
  9. disallow_untyped_defs = True
  10. disallow_incomplete_defs = True
  11. disallow_untyped_decorators = True
  12.  
  13. # None and Optional handling
  14. no_implicit_optional = True
  15. strict_optional = True
  16.  
  17. # Configuring warnings
  18. warn_redundant_casts = True
  19. warn_unused_ignores = True
  20. warn_no_return = True
  21. warn_return_any = True
  22. warn_unreachable = False
  23.  
  24. # Miscellaneous strictness flags
  25. strict_equality = True
  26. implicit_reexport = False
  27.  
  28. # Configuring error messages
  29. show_error_context = True
  30. show_column_numbers = True
  31. show_error_codes = True
  32. pretty = True
  33.  
  34. # Miscellaneous
  35. warn_unused_configs = True
Advertisement
Add Comment
Please, Sign In to add comment