Skip to content

Commit

Permalink
Add setuptools reference in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Mar 4, 2024
1 parent 990ba25 commit 03a9bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/setuptools/pkg_resources/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ class NullProvider:
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
# https://github.com/pypa/setuptools/pull/4254
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
# https://github.com/pypa/setuptools/pull/4254
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 03a9bc5

Please sign in to comment.