Make SyntaxError.offset be optional (#2557)

This commit is contained in:
Michael J. Sullivan
2018-10-25 13:54:55 -07:00
committed by Guido van Rossum
parent 3d8a8ec45d
commit ffeede30d2
3 changed files with 3 additions and 3 deletions

View File

@@ -1030,7 +1030,7 @@ class ReferenceError(StandardError): ...
class SyntaxError(StandardError):
msg = ... # type: str
lineno = ... # type: int
offset = ... # type: int
offset = ... # type: Optional[int]
text = ... # type: str
filename = ... # type: str
class IndentationError(SyntaxError): ...

View File

@@ -1030,7 +1030,7 @@ class ReferenceError(StandardError): ...
class SyntaxError(StandardError):
msg = ... # type: str
lineno = ... # type: int
offset = ... # type: int
offset = ... # type: Optional[int]
text = ... # type: str
filename = ... # type: str
class IndentationError(SyntaxError): ...