Fix resource_string type: from str to bytes (#734)

Fixes #733
This commit is contained in:
Bertrand Bonnefoy-Claudet
2016-12-05 20:20:16 +01:00
committed by Guido van Rossum
parent 4d59c04c16
commit f447cbdc89

View File

@@ -188,7 +188,7 @@ def resource_exists(package_or_requirement: _PkgReqType,
def resource_stream(package_or_requirement: _PkgReqType,
resource_name: str) -> IO[bytes]: ...
def resource_string(package_or_requirement: _PkgReqType,
resource_name: str) -> str: ...
resource_name: str) -> bytes: ...
def resource_isdir(package_or_requirement: _PkgReqType,
resource_name: str) -> bool: ...
def resource_listdir(package_or_requirement: _PkgReqType,
@@ -205,7 +205,7 @@ class IResourceManager:
def resource_stream(self, package_or_requirement: _PkgReqType,
resource_name: str) -> IO[bytes]: ...
def resource_string(self, package_or_requirement: _PkgReqType,
resource_name: str) -> str: ...
resource_name: str) -> bytes: ...
def resource_isdir(self, package_or_requirement: _PkgReqType,
resource_name: str) -> bool: ...
def resource_listdir(self, package_or_requirement: _PkgReqType,