Replace types._Cell with types.CellType (#11904)

Closes #11901
This commit is contained in:
Sebastian Rittau
2024-05-12 15:38:38 +02:00
committed by GitHub
parent 932311d441
commit ef0a5c2d12
3 changed files with 14 additions and 17 deletions

View File

@@ -44,7 +44,7 @@ Iterator = object
def get_method_function(meth: types.MethodType) -> types.FunctionType: ...
def get_method_self(meth: types.MethodType) -> object: ...
def get_function_closure(fun: types.FunctionType) -> tuple[types._Cell, ...] | None: ...
def get_function_closure(fun: types.FunctionType) -> tuple[types.CellType, ...] | None: ...
def get_function_code(fun: types.FunctionType) -> types.CodeType: ...
def get_function_defaults(fun: types.FunctionType) -> tuple[Any, ...] | None: ...
def get_function_globals(fun: types.FunctionType) -> dict[str, Any]: ...