mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 14:55:50 +08:00
Fix constructor signatures to 2.7/cPickle.{Pickler,Unpickler}.
This commit is contained in:
1 parent
14ffe2c13a
commit
4f4c6ff786
1 file changed
+6
-2
@@ -4,8 +4,12 @@ HIGHEST_PROTOCOL = ... # type: int
|
||||
compatible_formats = ... # type: List[str]
|
||||
format_version = ... # type: str
|
||||
|
||||
class Pickler: ...
|
||||
class Unpickler: ...
|
||||
class Pickler:
|
||||
def __init__(self, file: IO[str], protocol: int = ...) -> None: ...
|
||||
|
||||
|
||||
class Unpickler:
|
||||
def __init__(self, file: IO[str]) -> None: ...
|
||||
|
||||
def dump(obj: Any, file: IO[str], protocol: int = ...) -> None: ...
|
||||
def dumps(obj: Any, protocol: int = ...) -> str: ...
|
||||
|
||||
Reference in new issue
Block a user