diff --git a/stdlib/ctypes/__init__.pyi b/stdlib/ctypes/__init__.pyi index 1851d3481ee2..5e7c86ee6230 100644 --- a/stdlib/ctypes/__init__.pyi +++ b/stdlib/ctypes/__init__.pyi @@ -86,7 +86,7 @@ class _CanCastTo(_CData): ... class _PointerLike(_CanCastTo): ... _ECT: TypeAlias = Callable[[type[_CData] | None, _FuncPointer, tuple[_CData, ...]], _CData] -_PF: TypeAlias = _UnionT[tuple[int], tuple[int, str], tuple[int, str, Any]] +_PF: TypeAlias = _UnionT[tuple[int, str | None], tuple[int, str | None, Any]] class _FuncPointer(_PointerLike, _CData): restype: type[_CData] | Callable[[int], Any] | None @@ -99,7 +99,9 @@ class _FuncPointer(_PointerLike, _CData): @overload def __init__(self, func_spec: tuple[str | int, CDLL], paramflags: tuple[_PF, ...] = ...) -> None: ... @overload - def __init__(self, vtlb_index: int, name: str, paramflags: tuple[_PF, ...] = ..., iid: _Pointer[c_int] = ...) -> None: ... + def __init__( + self, vtlb_index: int, name: str, paramflags: tuple[_PF, ...] | None = ..., iid: _CData | None = ... + ) -> None: ... def __call__(self, *args: Any, **kwargs: Any) -> Any: ... class _NamedFuncPointer(_FuncPointer): diff --git a/stubs/beautifulsoup4/bs4/element.pyi b/stubs/beautifulsoup4/bs4/element.pyi index d327d42722d8..e45ebf145d1a 100644 --- a/stubs/beautifulsoup4/bs4/element.pyi +++ b/stubs/beautifulsoup4/bs4/element.pyi @@ -247,7 +247,7 @@ class Tag(PageElement): name: str | None = ..., namespace: str | None = ..., prefix: str | None = ..., - attrs: dict[str, str] | None = ..., + attrs: dict[str, Any] | None = ..., parent: Tag | None = ..., previous: PageElement | None = ..., is_xml: bool | None = ...,