Skip to content

Commit c4ceae9

Browse files
jameslsJelleZijlstra
authored andcommitted
Add filename attr to SyntaxError type (#1126)
1 parent 4395f1e commit c4ceae9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/2/__builtin__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@ class SyntaxError(StandardError):
920920
lineno = ... # type: int
921921
offset = ... # type: int
922922
text = ... # type: str
923+
filename = ... # type: str
923924
class IndentationError(SyntaxError): ...
924925
class TabError(IndentationError): ...
925926
class SystemError(StandardError): ...

stdlib/3/builtins.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ class SyntaxError(Exception):
956956
lineno = ... # type: int
957957
offset = ... # type: int
958958
text = ... # type: str
959+
filename = ... # type: str
959960
class IndentationError(SyntaxError): ...
960961
class TabError(IndentationError): ...
961962
class SystemError(Exception): ...

0 commit comments

Comments
 (0)