Closed goodmami closed 1 year ago
Implicit optional argument types are no longer allowed by default with recent versions of Mypy:
def foo(x: int = None) -> int: # type check error ...
They should now be:
def foo(x: Optional[int] = None) -> int: ...
Implicit optional argument types are no longer allowed by default with recent versions of Mypy:
They should now be: