Skip to content

Commit 6175758

Browse files
Making mypy happy
1 parent 4087ade commit 6175758

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/e2e/parser/handlers/handler_with_union_tag.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import Annotated, Literal, Union
24

35
from pydantic import BaseModel, Field

tests/performance/parser/test_parser_performance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import time
22
from contextlib import contextmanager
3-
from typing import Annotated, Generator, Literal, Union
3+
from typing import Generator
44

55
import pytest
66
from pydantic import BaseModel, Field
77

8+
from aws_lambda_powertools.shared.types import Annotated, Literal, Union
89
from aws_lambda_powertools.utilities.parser import parse
910

1011
# adjusted for slower machines in CI too

0 commit comments

Comments
 (0)