mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
add back StopIteration.value in Python 3 (#2744)
Fixes python/mypy#6209.
This commit is contained in:
@@ -1450,7 +1450,9 @@ class KeyboardInterrupt(BaseException): ...
|
||||
class SystemExit(BaseException):
|
||||
code: int
|
||||
class Exception(BaseException): ...
|
||||
class StopIteration(Exception): ...
|
||||
class StopIteration(Exception):
|
||||
if sys.version_info >= (3,):
|
||||
value: Any
|
||||
if sys.version_info >= (3,):
|
||||
_StandardError = Exception
|
||||
class OSError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user