Skip to content

Commit 0a1c8c3

Browse files
arihant2mathyouknowone
authored andcommitted
callable __or__ patch
1 parent 7a6e5c4 commit 0a1c8c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/_collections_abc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ def __getitem__(self, item):
512512
new_args = (t_args, t_result)
513513
return _CallableGenericAlias(Callable, tuple(new_args))
514514

515+
# TODO: RUSTPYTHON patch for common call
516+
def __or__(self, other):
517+
super().__or__(other)
518+
515519
def _is_param_expr(obj):
516520
"""Checks if obj matches either a list of types, ``...``, ``ParamSpec`` or
517521
``_ConcatenateGenericAlias`` from typing.py

0 commit comments

Comments
 (0)