mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 19:21:26 +08:00
fix some issues found by stubcheck (#1303)
- ThreadError exists (undocumented) on Python 3. It's an alias for _thread.error, but making it a separate exception seems fine. - zipfile.error is an alias for BadZipFile on both Python versions. - zlib.Compress and Decompress are not actually accessible at runtime.
This commit is contained in:
committed by
Matthias Kramm
parent
0aa7138c4e
commit
6f6fa428ce
@@ -37,8 +37,7 @@ def stack_size(size: int = ...) -> int: ...
|
||||
if sys.version_info >= (3,):
|
||||
TIMEOUT_MAX = ... # type: int
|
||||
|
||||
if sys.version_info < (3,):
|
||||
class ThreadError(Exception): ...
|
||||
class ThreadError(Exception): ...
|
||||
|
||||
|
||||
# TODO: Change to a class with __getattr__ and __setattr__
|
||||
|
||||
Reference in New Issue
Block a user