mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
add back StopIteration.value in Python 3 (#2744)
Fixes python/mypy#6209.
This commit is contained in:
1 parent
8e6e178a5a
commit
78690405cf
2 files changed
+6
-2
No files matched your search
@@ -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):
|
||||
|
||||
@@ -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