Fix partition signature (#413)

This commit is contained in:
Akseli Nelander
2020-07-01 14:35:35 +02:00
committed by GitHub
parent 574a87e68c
commit e680326c72

View File

@@ -56,4 +56,8 @@ class SimpleLazyObject(LazyObject):
def __copy__(self) -> List[int]: ...
def __deepcopy__(self, memo: Dict[Any, Any]) -> List[int]: ...
def partition(predicate: Callable, values: List[Model]) -> Tuple[List[Model], List[Model]]: ...
_PartitionMember = TypeVar("_PartitionMember")
def partition(
predicate: Callable, values: List[_PartitionMember]
) -> Tuple[List[_PartitionMember], List[_PartitionMember]]: ...