Skip to content

Commit 172c879

Browse files
committed
callable __or__ patch
1 parent cd1c9be commit 172c879

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
@@ -508,6 +508,10 @@ def __getitem__(self, item):
508508
new_args = (t_args, t_result)
509509
return _CallableGenericAlias(Callable, tuple(new_args))
510510

511+
# TODO: RUSTPYTHON patch for common call
512+
def __or__(self, other):
513+
super().__or__(other)
514+
511515
def _is_param_expr(obj):
512516
"""Checks if obj matches either a list of types, ``...``, ``ParamSpec`` or
513517
``_ConcatenateGenericAlias`` from typing.py

0 commit comments

Comments
 (0)