diff --git a/bw2io/importers/simapro_block_csv.py b/bw2io/importers/simapro_block_csv.py index 94d4179..1a9fb0e 100644 --- a/bw2io/importers/simapro_block_csv.py +++ b/bw2io/importers/simapro_block_csv.py @@ -2,7 +2,7 @@ import warnings from io import StringIO from pathlib import Path -from typing import Optional +from typing import Optional, Union from bw2data import Database, config, databases, labels from bw_simapro_csv import SimaProCSV @@ -39,7 +39,7 @@ class SimaProBlockCSVImporter(LCIImporter): def __init__( self, - path_or_stream: Path | StringIO, + path_or_stream: Union[Path, StringIO], database_name: Optional[str] = None, biosphere_database_name: Optional[str] = None, ): diff --git a/pyproject.toml b/pyproject.toml index 77081c7..4bb3986 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ "bw2parameters>=1.1.0", "bw_migrations>=0.2", "bw_processing>=0.8.5", - "bw_simapro_csv>=0.2", + "bw_simapro_csv>=0.2.3", "lxml", "mrio_common_metadata", "multifunctional>=0.5",