Merge pull request #1572 from davidhalter/classvar

Remove is_class_value from infer_type_vars
This commit is contained in:
Dave Halter authored and GitHub committed 2020-05-12 23:56:03 +02:00
commit 0caee73975
8 files changed
+104 -122

No files matched your search

@@ -10,6 +10,7 @@ from typing import (
Type,
TypeVar,
Union,
Sequence,
)
K = TypeVar('K')
@@ -165,6 +166,9 @@ some_str = NotImplemented # type: str
#? str()
first(some_str)
annotated = [len] # type: List[ Callable[[Sequence[float]], int] ]
#? int()
first(annotated)()
# Test that the right type is chosen when a partially realised mapping is expected
def values(mapping: Mapping[int, T]) -> List[T]: