Skip to content

Commit 5e7909d

Browse files
authored
Fix positional-only differences in types (#7220)
1 parent 7595e2e commit 5e7909d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

stdlib/types.pyi

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class CodeType:
174174
class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]):
175175
__hash__: None # type: ignore[assignment]
176176
def __init__(self, mapping: SupportsKeysAndGetItem[_KT, _VT_co]) -> None: ...
177-
def __getitem__(self, k: _KT) -> _VT_co: ...
177+
def __getitem__(self, __k: _KT) -> _VT_co: ...
178178
def __iter__(self) -> Iterator[_KT]: ...
179179
def __len__(self) -> int: ...
180180
def copy(self) -> dict[_KT, _VT_co]: ...
@@ -190,9 +190,9 @@ class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]):
190190
class SimpleNamespace:
191191
__hash__: None # type: ignore[assignment]
192192
def __init__(self, **kwargs: Any) -> None: ...
193-
def __getattribute__(self, name: str) -> Any: ...
194-
def __setattr__(self, name: str, value: Any) -> None: ...
195-
def __delattr__(self, name: str) -> None: ...
193+
def __getattribute__(self, __name: str) -> Any: ...
194+
def __setattr__(self, __name: str, __value: Any) -> None: ...
195+
def __delattr__(self, __name: str) -> None: ...
196196

197197
class ModuleType:
198198
__name__: str
@@ -305,7 +305,7 @@ if sys.version_info >= (3, 7):
305305
__qualname__: str
306306
__objclass__: type
307307
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
308-
def __get__(self, obj: Any, type: type = ...) -> Any: ...
308+
def __get__(self, __obj: Any, __type: type = ...) -> Any: ...
309309

310310
@final
311311
class MethodWrapperType:
@@ -314,8 +314,8 @@ if sys.version_info >= (3, 7):
314314
__qualname__: str
315315
__objclass__: type
316316
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
317-
def __eq__(self, other: object) -> bool: ...
318-
def __ne__(self, other: object) -> bool: ...
317+
def __eq__(self, __other: object) -> bool: ...
318+
def __ne__(self, __other: object) -> bool: ...
319319

320320
@final
321321
class MethodDescriptorType:
@@ -374,7 +374,7 @@ class GetSetDescriptorType:
374374
__objclass__: type
375375
def __get__(self, __obj: Any, __type: type = ...) -> Any: ...
376376
def __set__(self, __instance: Any, __value: Any) -> None: ...
377-
def __delete__(self, obj: Any) -> None: ...
377+
def __delete__(self, __obj: Any) -> None: ...
378378

379379
@final
380380
class MemberDescriptorType:
@@ -383,7 +383,7 @@ class MemberDescriptorType:
383383
__objclass__: type
384384
def __get__(self, __obj: Any, __type: type = ...) -> Any: ...
385385
def __set__(self, __instance: Any, __value: Any) -> None: ...
386-
def __delete__(self, obj: Any) -> None: ...
386+
def __delete__(self, __obj: Any) -> None: ...
387387

388388
if sys.version_info >= (3, 7):
389389
def new_class(
@@ -442,5 +442,5 @@ if sys.version_info >= (3, 10):
442442
@final
443443
class UnionType:
444444
__args__: tuple[Any, ...]
445-
def __or__(self, obj: Any) -> UnionType: ...
446-
def __ror__(self, obj: Any) -> UnionType: ...
445+
def __or__(self, __obj: Any) -> UnionType: ...
446+
def __ror__(self, __obj: Any) -> UnionType: ...

0 commit comments

Comments
 (0)