Skip to content

Commit

Permalink
Make SyntaxError.offset be optional (python#2557)
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan authored and Jiri Suchan committed Jan 23, 2019
1 parent b9ed322 commit ecbe552
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/2/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ if sys.version_info >= (3, 5):
class SyntaxError(Exception):
msg = ... # type: str
lineno = ... # type: int
offset = ... # type: int
offset = ... # type: Optional[int]
text = ... # type: str
filename = ... # type: str
class IndentationError(SyntaxError): ...
Expand Down

0 comments on commit ecbe552

Please sign in to comment.