Add winerror to WindowsError in builtins.pyi for Python 2.7 and 3 (#470)

Adds the int type member to WindowsError stub
This commit is contained in:
tonygrue-dbx
2016-08-15 11:41:05 -07:00
committed by Matthias Kramm
parent 69fdea09c9
commit 219c57a28c
2 changed files with 4 additions and 2 deletions

View File

@@ -835,7 +835,8 @@ class MemoryError(StandardError): ...
class NameError(StandardError): ...
class NotImplementedError(RuntimeError): ...
class OSError(EnvironmentError): ...
class WindowsError(OSError): ...
class WindowsError(OSError):
winerror = ... # type: int
class OverflowError(ArithmeticError): ...
class ReferenceError(StandardError): ...
class SyntaxError(StandardError):

View File

@@ -799,7 +799,8 @@ class NotADirectoryError(OSError): ...
class PermissionError(OSError): ...
class ProcessLookupError(OSError): ...
class TimeoutError(OSError): ...
class WindowsError(OSError): ...
class WindowsError(OSError):
winerror = ... # type: int
class OverflowError(ArithmeticError): ...
class ReferenceError(Exception): ...
class StopIteration(Exception):