Specify attribute types of SyntaxError

This commit is contained in:
Hong Minhee
2016-02-28 05:45:35 +09:00
parent f9a9fc56ac
commit 9f1ea9c412
2 changed files with 10 additions and 2 deletions

View File

@@ -814,7 +814,11 @@ class OSError(EnvironmentError): ...
class WindowsError(OSError): ...
class OverflowError(ArithmeticError): ...
class ReferenceError(StandardError): ...
class SyntaxError(StandardError): ...
class SyntaxError(StandardError):
msg = ... # type: str
lineno = ... # type: int
offset = ... # type: int
text = ... # type: str
class IndentationError(SyntaxError): ...
class TabError(IndentationError): ...
class SystemError(StandardError): ...