Skip to content

Commit

Permalink
Favor type[] instead of Type[]
Browse files Browse the repository at this point in the history
  • Loading branch information
twiggler committed Oct 10, 2024
1 parent f973b9f commit e4d1b45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_fieldtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import posixpath
import types
from datetime import datetime, timedelta, timezone
from typing import Callable, Tuple, Type
from typing import Callable, Tuple

import pytest

Expand Down Expand Up @@ -691,7 +691,7 @@ def test_path() -> None:
],
)
def test_path_multiple_parts(
path_parts: Tuple[str | pathlib.PurePath, ...], expected_instance: Type[pathlib.PurePath]
path_parts: Tuple[str | pathlib.PurePath, ...], expected_instance: type[pathlib.PurePath]
) -> None:
assert isinstance(flow.record.fieldtypes.path(*path_parts), expected_instance)

Expand Down Expand Up @@ -1160,7 +1160,7 @@ def test_command_failed() -> None:
fieldtypes.path,
],
)
def test_empty_path(path_cls: Type[pathlib.PurePath]) -> None:
def test_empty_path(path_cls: type[pathlib.PurePath]) -> None:
# initialize with empty string
p1 = path_cls("")
assert p1 == ""
Expand Down

0 comments on commit e4d1b45

Please sign in to comment.