Skip to content
Prev Previous commit
Next Next commit
Remove type annotations
  • Loading branch information
whitphx committed Sep 6, 2025
commit 847d8dfb318d9407e8abae1c889ebdb79ec55643
8 changes: 2 additions & 6 deletions Lib/importlib/resources/_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@

from . import abc

TYPE_CHECKING = False
if TYPE_CHECKING:
from ..machinery import ModuleSpec


class SpecLoaderAdapter:
"""
Adapt a package spec to adapt the underlying loader.
"""

def __init__(self, spec: ModuleSpec, adapter):
def __init__(self, spec, adapter):
self.spec = spec
self.loader = adapter(spec)

Expand Down Expand Up @@ -164,7 +160,7 @@ def files(self):
return CompatibilityFiles.SpecPath(self.spec, self._reader)


def wrap_spec(spec: ModuleSpec):
def wrap_spec(spec):
"""
Construct a package spec with traversable compatibility
on the spec/loader/reader.
Expand Down
Loading