mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
Change "NoneType" to "None". Add missing imports.
This commit is contained in:
@@ -3,14 +3,16 @@
|
||||
# for a more percise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import List, Tuple, Dict, Undefined, GenericType
|
||||
|
||||
def adler32(a, *args, **kwargs) -> int: pass
|
||||
|
||||
def compress(a, *args, **kwargs) -> str:
|
||||
raise MemoryError()
|
||||
|
||||
def compressobj(*args, **kwargs) -> object:
|
||||
raise ValueError()
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
|
||||
def crc32(a, *args, **kwargs) -> int: pass
|
||||
|
||||
@@ -18,8 +20,8 @@ def decompress(a, *args, **kwargs) -> str:
|
||||
raise MemoryError()
|
||||
|
||||
def decompressobj(*args, **kwargs) -> object:
|
||||
raise ValueError()
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
|
||||
|
||||
class Compress(object):
|
||||
|
||||
Reference in New Issue
Block a user