Skip to content

Commit d4aa505

Browse files
committed
🧎‍♀️ Genuflect to the types.
1 parent 4551c19 commit d4aa505

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

importlib_metadata/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class PackagePath(pathlib.PurePosixPath):
331331
size: int
332332
dist: Distribution
333333

334-
def read_text(self, encoding: str = 'utf-8') -> str: # type: ignore[override]
334+
def read_text(self, encoding: str = 'utf-8') -> str:
335335
return self.locate().read_text(encoding=encoding)
336336

337337
def read_binary(self) -> bytes:
@@ -750,7 +750,7 @@ class FastPath:
750750
True
751751
"""
752752

753-
@functools.lru_cache() # type: ignore
753+
@functools.lru_cache() # type: ignore[misc]
754754
def __new__(cls, root):
755755
return super().__new__(cls)
756756

tests/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
from .compat.py312 import import_helper
1414

1515
try:
16-
from importlib import resources # type: ignore
16+
from importlib import resources
1717

1818
getattr(resources, 'files')
1919
getattr(resources, 'as_file')
2020
except (ImportError, AttributeError):
21-
import importlib_resources as resources # type: ignore
21+
import importlib_resources as resources # type: ignore[import-not-found, no-redef]
2222

2323

2424
@contextlib.contextmanager

0 commit comments

Comments
 (0)