updade from Atlas repo

This commit is contained in:
Luciano Ramalho committed 2021-05-21 18:56:12 -03:00
1 parent c518bf851e
commit 8a330d822b
120 files changed
+2190 -1184

No files matched your search

+8 -8
View File
@@ -29,14 +29,6 @@ class Box(Generic[T]):
return self.contents
T_contra = TypeVar('T_contra', contravariant=True)
class InBox(Generic[T_contra]):
def put(self, item: T) -> None:
self.contents = item
T_co = TypeVar('T_co', covariant=True)
@@ -46,3 +38,11 @@ class OutBox(Generic[T_co]):
def get(self) -> Any:
return self.contents
T_contra = TypeVar('T_contra', contravariant=True)
class InBox(Generic[T_contra]):
def put(self, item: T) -> None:
self.contents = item