Skip to content

Commit

Permalink
Updated type hint to use Hashable from collections.abc instead of typ…
Browse files Browse the repository at this point in the history
…ing. This is because of typing.Hashable being deprecated.
  • Loading branch information
Ole-Christian Galbo Engstrøm committed Aug 19, 2024
1 parent d633fb8 commit 9321365
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 51 deletions.
2 changes: 1 addition & 1 deletion cvmatrix/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.2.post1'
__version__ = '1.0.2.post2'
3 changes: 2 additions & 1 deletion cvmatrix/cvmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
E-mail: ole.e@di.ku.dk
"""

from typing import Hashable, Iterable, Union
from collections.abc import Hashable
from typing import Iterable, Union

import numpy as np
from numpy import typing as npt
Expand Down
92 changes: 46 additions & 46 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cvmatrix"
version = "1.0.2.post1"
version = "1.0.2.post2"
description = "Fast computation of possibly centered/scaled training set kernel matrices in a cross-validation setting."
authors = ["Sm00thix <oleemail@icloud.com>"]
maintainers = ["Sm00thix <oleemail@icloud.com>"]
Expand Down
3 changes: 2 additions & 1 deletion tests/naive_cvmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
E-mail: ole.e@di.ku.dk
"""

from typing import Hashable, Iterable, Union
from collections.abc import Hashable
from typing import Iterable, Union

import numpy as np
from numpy import typing as npt
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cvmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"""

import sys
from collections.abc import Hashable
from itertools import product
from typing import Hashable, Iterable, Union
from typing import Iterable, Union

import numpy as np
import pytest
Expand Down

0 comments on commit 9321365

Please sign in to comment.