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:
Jelle Zijlstra
2017-05-23 12:44:35 -07:00
committed by Matthias Kramm
parent 0aa7138c4e
commit 6f6fa428ce
3 changed files with 10 additions and 10 deletions

View File

@@ -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__