fix deprecated ast classes (#13285)

This commit is contained in:
Stephen Morton
2024-12-27 20:01:53 -08:00
committed by GitHub
parent cc65d01b44
commit 897b350729
6 changed files with 24 additions and 17 deletions

View File

@@ -188,8 +188,6 @@ unittest.case.TestCase.__init_subclass__ # Runtime has *args, **kwargs, but wil
_ast.ImportFrom.level # None on the class, but never None on instances
_weakref.ProxyType.__reversed__ # Doesn't really exist
ast.ImportFrom.level # None on the class, but never None on instances
ast.ExtSlice.__new__ # C signature is broader than what is actually accepted
ast.Index.__new__ # C signature is broader than what is actually accepted
# Treated an alias of a typing class in the stubs,
# they are generic to type checkers anyway.

View File

@@ -169,8 +169,6 @@ unittest.case.TestCase.__init_subclass__ # Runtime has *args, **kwargs, but wil
_ast.ImportFrom.level # None on the class, but never None on instances
_weakref.ProxyType.__reversed__ # Doesn't really exist
ast.ImportFrom.level # None on the class, but never None on instances
ast.ExtSlice.__new__ # C signature is broader than what is actually accepted
ast.Index.__new__ # C signature is broader than what is actually accepted
# Treated an alias of a typing class in the stubs,
# they are generic to type checkers anyway.

View File

@@ -183,8 +183,6 @@ unittest.case.TestCase.__init_subclass__ # Runtime has *args, **kwargs, but wil
_ast.ImportFrom.level # None on the class, but never None on instances
_weakref.ProxyType.__reversed__ # Doesn't really exist
ast.ImportFrom.level # None on the class, but never None on instances
ast.ExtSlice.__new__ # C signature is broader than what is actually accepted
ast.Index.__new__ # C signature is broader than what is actually accepted
# Treated an alias of a typing class in the stubs,
# they are generic to type checkers anyway.

View File

@@ -196,8 +196,6 @@ unittest.case.TestCase.__init_subclass__ # Runtime has *args, **kwargs, but wil
_ast.ImportFrom.level # None on the class, but never None on instances
_weakref.ProxyType.__reversed__ # Doesn't really exist
ast.ImportFrom.level # None on the class, but never None on instances
ast.ExtSlice.__new__ # C signature is broader than what is actually accepted
ast.Index.__new__ # C signature is broader than what is actually accepted
# Treated an alias of a typing class in the stubs,
# they are generic to type checkers anyway.

View File

@@ -149,8 +149,6 @@ tkinter.tix.TkVersion
_ast.ImportFrom.level # None on the class, but never None on instances
_weakref.ProxyType.__reversed__ # Doesn't really exist
ast.ImportFrom.level # None on the class, but never None on instances
ast.ExtSlice.__new__ # C signature is broader than what is actually accepted
ast.Index.__new__ # C signature is broader than what is actually accepted
# Treated an alias of a typing class in the stubs,
# they are generic to type checkers anyway.