Skip to content

Commit

Permalink
Ruff version needed to be updated locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoskelo committed Jan 9, 2025
1 parent 06fee0c commit 1aae250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
THE SOFTWARE.
"""
import logging
from typing import Optional, cast
from typing import cast

import numpy as np
import pytest
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_dataclass_array_container() -> None:
class ArrayContainerWithOptional:
x: np.ndarray
# Deliberately left as Optional to test compatibility.
y: Optional[np.ndarray] # noqa: UP007
y: np.ndarray | None

with pytest.raises(TypeError, match="Field 'y' union contains non-array"):
# NOTE: cannot have wrapped annotations (here by `Optional`)
Expand Down

0 comments on commit 1aae250

Please sign in to comment.