Skip to content

Commit 612d33c

Browse files
committed
Remove import of Self for Python 3.10 compatibility
1 parent 928751d commit 612d33c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

climada/hazard/forecast.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"""
2121

2222
import logging
23-
from typing import Self
2423

2524
import numpy as np
2625

@@ -107,7 +106,7 @@ def _check_sizes(self):
107106
size(exp_len=num_entries, var=self.lead_time, var_name="Forecast.lead_time")
108107

109108
@classmethod
110-
def concat(cls, haz_list: list[Self]) -> Self:
109+
def concat(cls, haz_list: list):
111110
"""Concatenate multiple HazardForecast instances and return a new object"""
112111
if len(haz_list) == 0:
113112
return cls()

0 commit comments

Comments
 (0)