Skip to content

Commit

Permalink
Address deprecation of typing.Hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
chezou committed Dec 10, 2024
1 parent 38472c9 commit d37e414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rectools/metrics/intersection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Dict, Hashable, Optional, Union
from collections.abc import Hashable
from typing import Dict, Optional, Union

import attr
import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion tests/tools/test_ann.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

import pickle
import sys
from typing import Callable, Dict, Hashable, List, Union
from collections.abc import Hashable
from typing import Callable, Dict, List, Union

import numpy as np
import pytest
Expand Down

0 comments on commit d37e414

Please sign in to comment.