We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf46263 commit 7924109Copy full SHA for 7924109
atlite/resource.py
@@ -80,7 +80,7 @@ def get_windturbineconfig(
80
Config with details on the turbine
81
82
"""
83
- assert isinstance(turbine, str | Path | dict)
+ assert isinstance(turbine, (str, Path, dict))
84
85
if add_cutout_windspeed is False:
86
msg = (
@@ -92,7 +92,7 @@ def get_windturbineconfig(
92
if isinstance(turbine, str) and turbine.startswith("oedb:"):
93
conf = get_oedb_windturbineconfig(turbine[len("oedb:") :])
94
95
- elif isinstance(turbine, str | Path):
+ elif isinstance(turbine, (str, Path)):
96
if isinstance(turbine, str):
97
turbine_path = windturbines[turbine.replace(".yaml", "")]
98
0 commit comments