summaryrefslogtreecommitdiffstats
path: root/tests/test_declarative_parser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:48 +0000
commitec14b3742103754d9022782587d0b5cf2f9fd1e3 (patch)
treeb3496f24575e063a780a133dfc86eca7a51fb290 /tests/test_declarative_parser.py
parentReleasing progress-linux version 0.1.28-0.0~progress7.99u1. (diff)
downloaddebputy-ec14b3742103754d9022782587d0b5cf2f9fd1e3.tar.xz
debputy-ec14b3742103754d9022782587d0b5cf2f9fd1e3.zip
Merging upstream version 0.1.29.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_declarative_parser.py')
-rw-r--r--tests/test_declarative_parser.py11
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,