Add init to NameError stub with name keyword argument (#11627)

Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>

Closes #11626
This commit is contained in:
Jay Qi
2024-03-18 14:08:25 -04:00
committed by GitHub
parent adde7cc3ac
commit cc5f23ac14

View File

@@ -1865,6 +1865,7 @@ class MemoryError(Exception): ...
class NameError(Exception):
if sys.version_info >= (3, 10):
def __init__(self, *args: object, name: str | None = ...) -> None: ...
name: str
class ReferenceError(Exception): ...