Disable assuming Optional type for values with None default (#16029)

https://www.python.org/dev/peps/pep-0484/#union-types
"Type checkers should move towards requiring the optional type to be
made explicit."
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2018-08-17 20:22:49 +02:00
1 parent 2ad0bd4036
commit 3800f00564
9 files changed
+24 -17

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ check_untyped_defs = true
disallow_untyped_calls = true
follow_imports = silent
ignore_missing_imports = true
no_implicit_optional = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_return_any = true