From b83a744403704ca24f5fcc5c9bdf4cbeb0d52616 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Thu, 21 May 2026 08:01:15 +0800 Subject: [PATCH 1/4] commit --- stdlib/__main__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/__main__.pyi b/stdlib/__main__.pyi index 5b0f74feb261..3536a6f021c5 100644 --- a/stdlib/__main__.pyi +++ b/stdlib/__main__.pyi @@ -1 +1 @@ -def __getattr__(name: str): ... # incomplete module +def __getattr__(name: str, /): ... # incomplete module From 5217af895a7d1a437daece6e16b4eca08377f459 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Thu, 21 May 2026 08:09:21 +0800 Subject: [PATCH 2/4] commit 2 --- stdlib/_ctypes.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/_ctypes.pyi b/stdlib/_ctypes.pyi index d800ac5c20d0..36365cea3aa8 100644 --- a/stdlib/_ctypes.pyi +++ b/stdlib/_ctypes.pyi @@ -249,7 +249,7 @@ class _UnionType(_CTypeBaseType): # At runtime, various attributes are created on a Union subclass based # on its _fields_. This method doesn't exist, but represents those # dynamically created attributes. - def __getattr__(self, name: str) -> _CField[Any, Any, Any]: ... + def __getattr__(self, name: str, /) -> _CField[Any, Any, Any]: ... if sys.version_info < (3, 13): # Inherited from CType_Type starting on 3.13 def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues] @@ -263,8 +263,8 @@ class Union(_CData, metaclass=_UnionType): _align_: ClassVar[int] def __init__(self, *args: Any, **kw: Any) -> None: ... - def __getattr__(self, name: str) -> Any: ... - def __setattr__(self, name: str, value: Any) -> None: ... + def __getattr__(self, name: str, /) -> Any: ... + def __setattr__(self, name: str, value: Any, /) -> None: ... # This class is not exposed. It calls itself _ctypes.PyCStructType. @type_check_only @@ -277,7 +277,7 @@ class _PyCStructType(_CTypeBaseType): # At runtime, various attributes are created on a Structure subclass based # on its _fields_. This method doesn't exist, but represents those # dynamically created attributes. - def __getattr__(self, name: str) -> _CField[Any, Any, Any]: ... + def __getattr__(self, name: str, /) -> _CField[Any, Any, Any]: ... if sys.version_info < (3, 13): # Inherited from CType_Type starting on 3.13 def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues] @@ -295,7 +295,7 @@ class Structure(_CData, metaclass=_PyCStructType): _layout_: ClassVar[Literal["ms", "gcc-sysv"]] def __init__(self, *args: Any, **kw: Any) -> None: ... - def __getattr__(self, name: str) -> Any: ... + def __getattr__(self, name: str, /) -> Any: ... def __setattr__(self, name: str, value: Any) -> None: ... # This class is not exposed. It calls itself _ctypes.PyCArrayType. From 6de9a30f6a47fea2514c1419ad34dbcd5d367af3 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Thu, 21 May 2026 08:10:11 +0800 Subject: [PATCH 3/4] commit 3 --- stubs/tensorflow/tensorflow/python/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/tensorflow/tensorflow/python/__init__.pyi b/stubs/tensorflow/tensorflow/python/__init__.pyi index 5b0f74feb261..3536a6f021c5 100644 --- a/stubs/tensorflow/tensorflow/python/__init__.pyi +++ b/stubs/tensorflow/tensorflow/python/__init__.pyi @@ -1 +1 @@ -def __getattr__(name: str): ... # incomplete module +def __getattr__(name: str, /): ... # incomplete module From 2ed6fcfd73e29102004fde727c638b6873a707e7 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Thu, 21 May 2026 08:10:31 +0800 Subject: [PATCH 4/4] commit 4 --- stubs/tensorflow/tensorflow/python/keras/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/tensorflow/tensorflow/python/keras/__init__.pyi b/stubs/tensorflow/tensorflow/python/keras/__init__.pyi index 5b0f74feb261..3536a6f021c5 100644 --- a/stubs/tensorflow/tensorflow/python/keras/__init__.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/__init__.pyi @@ -1 +1 @@ -def __getattr__(name: str): ... # incomplete module +def __getattr__(name: str, /): ... # incomplete module