@@ -348,10 +348,9 @@ def test_parameters(self, doctype, expected):
348348 )
349349 transformer = DoctypeTransformer ()
350350 annotations = DocstringAnnotations (docstring , transformer = transformer )
351- assert len (annotations .parameters ) == 2
351+ assert len (annotations .parameters ) == 1
352352 assert annotations .parameters ["a" ].value == expected
353- assert annotations .parameters ["b" ].value == "Incomplete"
354- assert annotations .parameters ["b" ].imports == {PyImport .typeshed_Incomplete ()}
353+ assert "b" not in annotations .parameters
355354
356355 @pytest .mark .parametrize (
357356 ("doctypes" , "expected" ),
@@ -539,12 +538,10 @@ def test_combined_numpydoc_params(self):
539538 )
540539 transformer = DoctypeTransformer ()
541540 annotations = DocstringAnnotations (docstring , transformer = transformer )
542- assert len (annotations .parameters ) == 5
541+ assert len (annotations .parameters ) == 3
543542 assert annotations .parameters ["a" ].value == "bool"
544543 assert annotations .parameters ["b" ].value == "bool"
545544 assert annotations .parameters ["c" ].value == "bool"
546545
547- assert annotations .parameters ["d" ].value == "Incomplete"
548- assert annotations .parameters ["e" ].value == "Incomplete"
549- assert annotations .parameters ["d" ].imports == {PyImport .typeshed_Incomplete ()}
550- assert annotations .parameters ["e" ].imports == {PyImport .typeshed_Incomplete ()}
546+ assert "d" not in annotations .parameters
547+ assert "e" not in annotations .parameters
0 commit comments