Skip to content

Commit 7924109

Browse files
committed
fix: tests
1 parent cf46263 commit 7924109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlite/resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_windturbineconfig(
8080
Config with details on the turbine
8181
8282
"""
83-
assert isinstance(turbine, str | Path | dict)
83+
assert isinstance(turbine, (str, Path, dict))
8484

8585
if add_cutout_windspeed is False:
8686
msg = (
@@ -92,7 +92,7 @@ def get_windturbineconfig(
9292
if isinstance(turbine, str) and turbine.startswith("oedb:"):
9393
conf = get_oedb_windturbineconfig(turbine[len("oedb:") :])
9494

95-
elif isinstance(turbine, str | Path):
95+
elif isinstance(turbine, (str, Path)):
9696
if isinstance(turbine, str):
9797
turbine_path = windturbines[turbine.replace(".yaml", "")]
9898

0 commit comments

Comments
 (0)