Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/__main__.pyi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
def __getattr__(name: str): ... # incomplete module
def __getattr__(name: str, /): ... # incomplete module
10 changes: 5 additions & 5 deletions stdlib/_ctypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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]
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion stubs/tensorflow/tensorflow/python/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
def __getattr__(name: str): ... # incomplete module
def __getattr__(name: str, /): ... # incomplete module
2 changes: 1 addition & 1 deletion stubs/tensorflow/tensorflow/python/keras/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
def __getattr__(name: str): ... # incomplete module
def __getattr__(name: str, /): ... # incomplete module
Loading