-
-
Save mitsuse/e6f36e284c2cfed32233d118a17ec004 to your computer and use it in GitHub Desktop.
Argument 1 to "f" has incompatible type "object"; expected "Type[Any]"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List | |
from typing import Tuple | |
from typing import Type | |
def f(x: Type) -> None: | |
... | |
# error: Argument 1 to "f" has incompatible type "object"; expected "Type[Any]" | |
# f(Tuple[int, ...]) | |
# OK | |
f(List[int]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mypy 0.812