11import pytest
2- from typing import Union , List
2+ from typing import Union , List , Type
33
44from nt2 .readers .base import BaseReader
55from 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