Skip to content

Commit d37e414

Browse files
committed
Address deprecation of typing.Hashable
1 parent 38472c9 commit d37e414

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

rectools/metrics/intersection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import Dict, Hashable, Optional, Union
15+
from collections.abc import Hashable
16+
from typing import Dict, Optional, Union
1617

1718
import attr
1819
import numpy as np

tests/tools/test_ann.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
import pickle
1616
import sys
17-
from typing import Callable, Dict, Hashable, List, Union
17+
from collections.abc import Hashable
18+
from typing import Callable, Dict, List, Union
1819

1920
import numpy as np
2021
import pytest

0 commit comments

Comments
 (0)