builtins: updates for py312 (#10211)

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
Shantanu
2023-06-03 17:05:40 -07:00
committed by GitHub
parent d8ef303e00
commit be85cc7121
2 changed files with 24 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ from importlib.machinery import ModuleSpec
# pytype crashes if types.MappingProxyType inherits from collections.abc.Mapping instead of typing.Mapping
from typing import Any, ClassVar, Generic, Mapping, Protocol, TypeVar, overload # noqa: Y022
from typing_extensions import Literal, ParamSpec, final
from typing_extensions import Literal, ParamSpec, TypeVarTuple, final
__all__ = [
"FunctionType",
@@ -94,6 +94,8 @@ class FunctionType:
if sys.version_info >= (3, 10):
@property
def __builtins__(self) -> dict[str, Any]: ...
if sys.version_info >= (3, 12):
__type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
__module__: str
def __init__(