mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
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:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user