From 88506f0e56299004bb7a35c61ff900f27e3449a6 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 27 Feb 2023 12:20:10 +0000 Subject: [PATCH] `_weakref.ReferenceType.__new__`: all args are pos-only (#9820) Fixes #9712 --- stdlib/_weakref.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/_weakref.pyi b/stdlib/_weakref.pyi index 2a43de3ff..b6044fac4 100644 --- a/stdlib/_weakref.pyi +++ b/stdlib/_weakref.pyi @@ -20,7 +20,7 @@ class ProxyType(Generic[_T]): # "weakproxy" class ReferenceType(Generic[_T]): __callback__: Callable[[ReferenceType[_T]], Any] - def __new__(cls, o: _T, callback: Callable[[ReferenceType[_T]], Any] | None = ...) -> Self: ... + def __new__(cls, __o: _T, __callback: Callable[[ReferenceType[_T]], Any] | None = ...) -> Self: ... def __call__(self) -> _T | None: ... if sys.version_info >= (3, 9): def __class_getitem__(cls, item: Any) -> GenericAlias: ...