22
33from pytest import mark
44
5- from pyannotating import FormalAnnotation , InputAnnotationAnnotation , AnnotationTemplate , input_annotation , Special
5+ from pyannotating import FormalAnnotation , AnnotationTemplate , input_annotation , Special , Subgroup , _InputAnnotationAnnotation
66
77
88@mark .parametrize (
@@ -23,7 +23,7 @@ def test_formal_annotation_documenting(doc: str):
2323
2424@mark .parametrize ('number_of_creation' , [8 ])
2525def test_input_annotation_annotation_loneliness (number_of_creation : int ):
26- annotations = tuple (InputAnnotationAnnotation () for _ in range (number_of_creation ))
26+ annotations = tuple (_InputAnnotationAnnotation () for _ in range (number_of_creation ))
2727
2828 for first_annotation_index in range (number_of_creation ):
2929 for second_annotation in annotations [first_annotation_index + 1 :]:
@@ -32,10 +32,10 @@ def test_input_annotation_annotation_loneliness(number_of_creation: int):
3232
3333@mark .parametrize (
3434 "type_to_group" ,
35- [int , float , int | float , Union [set , frozenset ], Optional [tuple ], InputAnnotationAnnotation ]
35+ [int , float , int | float , Union [set , frozenset ], Optional [tuple ], _InputAnnotationAnnotation ]
3636)
3737def test_input_annotation_annotation_grouping (type_to_group : type ):
38- annotation = InputAnnotationAnnotation ()
38+ annotation = _InputAnnotationAnnotation ()
3939
4040 assert annotation | type_to_group == Union [annotation , type_to_group ]
4141 assert type_to_group | annotation == Union [type_to_group | annotation ]
0 commit comments