diff --git a/followthemoney/export/csv.py b/followthemoney/export/csv.py index c62d4cff1..f2cb0e9f1 100644 --- a/followthemoney/export/csv.py +++ b/followthemoney/export/csv.py @@ -47,7 +47,7 @@ def _get_writer(self, schema: Schema) -> CSVWriter: return writer def close(self) -> None: - for (handle, _) in self.handles.values(): + for handle, _ in self.handles.values(): handle.close() diff --git a/followthemoney/util.py b/followthemoney/util.py index 40e69bf9e..29b09760c 100644 --- a/followthemoney/util.py +++ b/followthemoney/util.py @@ -18,12 +18,8 @@ T = TypeVar("T") K = TypeVar("K") V = TypeVar("V") -try: - # Work-around for Python 3.8 backward compat: - PathLike = Union[str, os.PathLike[str]] -except TypeError: - PathLike = Union[str, os.PathLike] # type: ignore +PathLike = Union[str, os.PathLike[str]] i18n_path = os.path.join(os.path.dirname(__file__), "translations") state = local() log = logging.getLogger(__name__)