blueloveTH il y a 2 ans
Parent
commit
a51025f516
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      python/typing.py

+ 7 - 1
python/typing.py

@@ -5,7 +5,13 @@ class _Placeholder:
         return self
     def __call__(self, *args, **kwargs):
         return self
-    
+    def __and__(self, other):
+        return self
+    def __or__(self, other):
+        return self
+    def __xor__(self, other):
+        return self
+
 
 _PLACEHOLDER = _Placeholder()