Skip to content

Commit 82438a3

Browse files
authored
pkgconf: fix typing (#67)
Signed-off-by: Filipe Laíns <[email protected]>
1 parent d99fef2 commit 82438a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkgconf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def __str__(self) -> str:
3737
f'- Distribution: {self._distribution_info()}'
3838
)
3939

40-
def _distribution_info(self):
40+
def _distribution_info(self) -> str:
4141
info = f'{self._entrypoint.dist}-{self._entrypoint.dist.version}'
4242
metadata_path = self._find_metadata_path()
4343
if metadata_path:
4444
info += f' at {metadata_path!r}'
4545
return info
4646

47-
def _find_metadata_path(self) -> str | None:
47+
def _find_metadata_path(self) -> Optional[str]:
4848
try:
4949
dist_root = self._entrypoint.dist.locate_file('')
5050
except NotImplementedError:

0 commit comments

Comments
 (0)