mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-14 18:27:51 +08:00
Make SyntaxError.offset be optional (#2557)
This commit is contained in:
1 parent
3d8a8ec45d
commit
ffeede30d2
3 files changed
+3
-3
No files matched your search
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in new issue
Block a user