mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add filename attr to SyntaxError type (#1126)
This commit is contained in:
committed by
Jelle Zijlstra
parent
4395f1ef16
commit
c4ceae98db
@@ -920,6 +920,7 @@ class SyntaxError(StandardError):
|
||||
lineno = ... # type: int
|
||||
offset = ... # type: int
|
||||
text = ... # type: str
|
||||
filename = ... # type: str
|
||||
class IndentationError(SyntaxError): ...
|
||||
class TabError(IndentationError): ...
|
||||
class SystemError(StandardError): ...
|
||||
|
||||
@@ -956,6 +956,7 @@ class SyntaxError(Exception):
|
||||
lineno = ... # type: int
|
||||
offset = ... # type: int
|
||||
text = ... # type: str
|
||||
filename = ... # type: str
|
||||
class IndentationError(SyntaxError): ...
|
||||
class TabError(IndentationError): ...
|
||||
class SystemError(Exception): ...
|
||||
|
||||
Reference in New Issue
Block a user