Skip to content

Commit

Permalink
clean up typing workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Oct 5, 2024
1 parent 8c3aecf commit 7712f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion followthemoney/export/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
6 changes: 1 addition & 5 deletions followthemoney/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 7712f93

Please sign in to comment.