Skip to content

Commit e2ec5d0

Browse files
Hanaasagisrittau
authored andcommitted
Make SyntaxError.text be optional (#3119)
Closes #3118
1 parent f76b7b2 commit e2ec5d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/2/__builtin__.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ class SyntaxError(_StandardError):
15231523
msg: str
15241524
lineno: int
15251525
offset: Optional[int]
1526-
text: str
1526+
text: Optional[str]
15271527
filename: str
15281528
class SystemError(_StandardError): ...
15291529
class TypeError(_StandardError): ...

stdlib/2and3/builtins.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ class SyntaxError(_StandardError):
15231523
msg: str
15241524
lineno: int
15251525
offset: Optional[int]
1526-
text: str
1526+
text: Optional[str]
15271527
filename: str
15281528
class SystemError(_StandardError): ...
15291529
class TypeError(_StandardError): ...

0 commit comments

Comments
 (0)