Last active
July 17, 2020 15:13
-
-
Save FooBarQuaxx/85d51a0638a46fd189339380b92a41dd to your computer and use it in GitHub Desktop.
This file contains hidden or 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, Tuple, TypeVar | |
X = TypeVar("X") | |
Z = Tuple[X, int] | |
# mypy: OK; PyCharm: KO | |
def f0() -> Z[List[str]]: | |
return ["a"], 0 | |
# mypy: KO; PyCharm: OK | |
def f1() -> Z[List[str], int]: | |
return ["a"], 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment