mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Since 2.6, the plistlib module is not Mac-specific.
This commit is contained in:
@@ -37,14 +37,13 @@ def writePlist(value: Mapping[str, Any], pathOrFile: Union[_Path, IO[bytes]]) ->
|
||||
def readPlistFromBytes(data: bytes) -> DictT[str, Any]: ...
|
||||
def writePlistToBytes(value: Mapping[str, Any]) -> bytes: ...
|
||||
if sys.version_info < (3,):
|
||||
if sys.platform == 'darwin':
|
||||
def readPlistFromResource(path: _Path, restype: str = ...,
|
||||
resid: int = ...) -> DictT[str, Any]: ...
|
||||
def writePlistToResource(rootObject: Mapping[str, Any], path: _Path,
|
||||
restype: str = ...,
|
||||
resid: int = ...) -> None: ...
|
||||
def readPlistFromString(data: str) -> DictT[str, Any]: ...
|
||||
def writePlistToString(rootObject: Mapping[str, Any]) -> str: ...
|
||||
def readPlistFromResource(path: _Path, restype: str = ...,
|
||||
resid: int = ...) -> DictT[str, Any]: ...
|
||||
def writePlistToResource(rootObject: Mapping[str, Any], path: _Path,
|
||||
restype: str = ...,
|
||||
resid: int = ...) -> None: ...
|
||||
def readPlistFromString(data: str) -> DictT[str, Any]: ...
|
||||
def writePlistToString(rootObject: Mapping[str, Any]) -> str: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class Dict(dict):
|
||||
|
||||
Reference in New Issue
Block a user