Skip to content

Commit 355a10d

Browse files
committed
Remove Python 3.8 compatibility code.
1 parent 2addcf2 commit 355a10d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

importlib_resources/abc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import abc
22
import itertools
3+
import os
34
import pathlib
45
from typing import (
56
Any,
@@ -18,7 +19,7 @@
1819

1920
from typing_extensions import Literal
2021

21-
from .compat.py38 import StrPath
22+
StrPath = Union[str, os.PathLike[str]]
2223

2324
__all__ = ["ResourceReader", "Traversable", "TraversableResources"]
2425

importlib_resources/compat/py38.py

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Require Python 3.9 or later.

0 commit comments

Comments
 (0)