blueloveTH 2 years ago
parent
commit
a51025f516
1 changed files with 7 additions and 1 deletions
  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()