You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This mypy option will enforce using typing.Optional when a default argument of None is stated:
def func(a: int = None):
return a
main.py:36: error: Incompatible default for argument "a" (default has type "None", argument has type "int")
The text was updated successfully, but these errors were encountered:
kristapratico
added
Client
This issue points to a problem in the data-plane of the library.
EngSys
This issue is impacting the engineering system.
labels
Apr 5, 2022
We get this for free with pyright and we'll get this in mypy when we bump our currently pinned version (TBD) because this option is now enabled by default.
This mypy option will enforce using
typing.Optional
when a default argument of None is stated:main.py:36: error: Incompatible default for argument "a" (default has type "None", argument has type "int")
The text was updated successfully, but these errors were encountered: