Skip to content

Commit aca7bec

Browse files
committed
update comment
1 parent 5ddc193 commit aca7bec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/types.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ if sys.version_info >= (3, 10):
717717
def __args__(self) -> tuple[Any, ...]: ...
718718
@property
719719
def __parameters__(self) -> tuple[Any, ...]: ...
720-
# the `Any` is because of underspecified binop semantics, when the rhs is a `_SpecialForm`
721-
# it might result in a `_SpecialForm` (Union)
720+
# the `Any` in the return typeis because of underspecified binop semantics, and `value: Any` is clobbering
721+
# `_SpecialForm.__ror__` which would result in a `_SpecialForm` (Union)
722722
def __or__(self, value: Any, /) -> UnionType | type | Any: ...
723723
def __ror__(self, value: Any, /) -> UnionType | type | Any: ...
724724
def __eq__(self, value: object, /) -> bool: ...

0 commit comments

Comments
 (0)