Skip to content

Commit f580e24

Browse files
committed
type -> Type
1 parent 7f1bd62 commit f580e24

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nt2/tests/test_containers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from typing import Union, List
2+
from typing import Union, List, Type
33

44
from nt2.readers.base import BaseReader
55
from nt2.containers.fields import Fields
@@ -18,7 +18,7 @@ def check_shape(shape1, shape2):
1818
@pytest.mark.parametrize(
1919
"test,field_container", [[test, fc] for test in TESTS for fc in [Data, Fields]]
2020
)
21-
def test_fields(test, field_container: Union[type[Data], type[Fields]]):
21+
def test_fields(test, field_container: Union[Type[Data], Type[Fields]]):
2222
reader: BaseReader = test["reader"]()
2323
PATH = test["path"]
2424
if test["fields"] == {}:
@@ -110,7 +110,7 @@ def field_remap(Fold: str):
110110
"test,particle_container",
111111
[[test, fc] for test in TESTS for fc in [Data, Particles]],
112112
)
113-
def test_particles(test, particle_container: Union[type[Data], type[Particles]]):
113+
def test_particles(test, particle_container: Union[Type[Data], Type[Particles]]):
114114
reader: BaseReader = test["reader"]()
115115
PATH = test["path"]
116116
if test["particles"] == {}:

0 commit comments

Comments
 (0)