diff options
Diffstat (limited to 'tests/test_declarative_parser.py')
-rw-r--r-- | tests/test_declarative_parser.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_declarative_parser.py b/tests/test_declarative_parser.py index 94341ea..26291dd 100644 --- a/tests/test_declarative_parser.py +++ b/tests/test_declarative_parser.py @@ -1,4 +1,11 @@ -from typing import List, TypedDict, NotRequired, Annotated, Union, Mapping +from typing import ( + List, + TypedDict, + NotRequired, + Annotated, + Union, + Mapping, +) import pytest @@ -25,7 +32,7 @@ class TFinalEntity(DebputyParsedContent): class TSourceEntity(TypedDict): sources: NotRequired[List[str]] - source: Annotated[NotRequired[str], DebputyParseHint.target_attribute("sources")] + source: NotRequired[Annotated[str, DebputyParseHint.target_attribute("sources")]] as_: NotRequired[ Annotated[ str, |