Skip to content

Commit

Permalink
pypa/setuptools#4254 merged upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Mar 5, 2024
1 parent 990ba25 commit 25fc709
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stubs/setuptools/pkg_resources/__init__.pyi
Expand Up @@ -335,16 +335,10 @@ class NullProvider:
def get_resource_stream(self, manager: ResourceManager, resource_name: str) -> BytesIO: ...
def get_resource_string(self, manager: ResourceManager, resource_name: str) -> bytes: ...
def has_resource(self, resource_name: str) -> bool: ...
# Note: runtime forgets to coerce the return type to boolean,
# but we need to specify bool for NullProvider to respect the IResourceProvider protocol
# TODO: raise and fix in setuptools' repo
def has_metadata(self, name: str) -> bool: ...
def get_metadata(self, name: str) -> str: ...
def get_metadata_lines(self, name: str) -> chain[str]: ...
def resource_isdir(self, resource_name: str) -> bool: ...
# Note: runtime forgets to coerce the return type to boolean,
# but we need to specify bool for NullProvider to respect the IResourceProvider protocol
# TODO: raise and fix in setuptools' repo
def metadata_isdir(self, name: str) -> bool: ...
def resource_listdir(self, resource_name: str) -> list[str]: ...
def metadata_listdir(self, name: str) -> list[str]: ...
Expand Down

0 comments on commit 25fc709

Please sign in to comment.