Make SyntaxError.text be optional (#3119)

Closes #3118
This commit is contained in:
秋葉
2019-07-15 15:11:45 +08:00
committed by Sebastian Rittau
parent f76b7b273b
commit e2ec5d0525
2 changed files with 2 additions and 2 deletions

View File

@@ -1523,7 +1523,7 @@ class SyntaxError(_StandardError):
msg: str
lineno: int
offset: Optional[int]
text: str
text: Optional[str]
filename: str
class SystemError(_StandardError): ...
class TypeError(_StandardError): ...

View File

@@ -1523,7 +1523,7 @@ class SyntaxError(_StandardError):
msg: str
lineno: int
offset: Optional[int]
text: str
text: Optional[str]
filename: str
class SystemError(_StandardError): ...
class TypeError(_StandardError): ...