We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99fef2 commit 82438a3Copy full SHA for 82438a3
src/pkgconf/__init__.py
@@ -37,14 +37,14 @@ def __str__(self) -> str:
37
f'- Distribution: {self._distribution_info()}'
38
)
39
40
- def _distribution_info(self):
+ def _distribution_info(self) -> str:
41
info = f'{self._entrypoint.dist}-{self._entrypoint.dist.version}'
42
metadata_path = self._find_metadata_path()
43
if metadata_path:
44
info += f' at {metadata_path!r}'
45
return info
46
47
- def _find_metadata_path(self) -> str | None:
+ def _find_metadata_path(self) -> Optional[str]:
48
try:
49
dist_root = self._entrypoint.dist.locate_file('')
50
except NotImplementedError:
0 commit comments