blueloveTH 2 年 前
コミット
a51025f516
1 ファイル変更7 行追加1 行削除
  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()