Mark various dunder methods as positional-only in the stdlib (#14528)

This commit is contained in:
Brian Schubert
2025-08-05 17:57:39 -04:00
committed by GitHub
parent 953e21bafa
commit d01dc82bd2
7 changed files with 27 additions and 26 deletions
+2 -2
View File
@@ -593,8 +593,8 @@ else:
def __getitem__(self, parameters: Incomplete | tuple[Incomplete, ...]) -> AnnotationForm: ...
def __init_subclass__(cls, *args: Unused, **kwargs: Unused) -> NoReturn: ...
if sys.version_info >= (3, 10):
def __or__(self, right: Any) -> _SpecialForm: ...
def __ror__(self, left: Any) -> _SpecialForm: ...
def __or__(self, right: Any, /) -> _SpecialForm: ...
def __ror__(self, left: Any, /) -> _SpecialForm: ...
# PEP 727
class Doc: