a guest Jan 24th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import typing
- SomeType = typing.NewType('SomeType', str)
- OtherType = typing.NewType('OtherType', str)
- def fun(s: typing.Type[str]):
- mypy_test.py:5: error: Argument 1 to "fun" has incompatible type "SomeType"; expected "Type[str]"
RAW Paste Data