Skip to content

Commit 66c7527

Browse files
author
Paul Duncan
committed
Correction to imports per Python version
1 parent e2d33ca commit 66c7527

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

predicthq/endpoints/v1/beam/schemas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class StrEnum(str, enum.Enum):
1313
else:
1414
from enum import StrEnum
1515

16-
# Python < 3.9 does not have Annotated in the enum module
16+
# Python < 3.9 does not have Annotated
1717
if sys.version_info < (3, 9):
1818
from typing_extensions import Annotated
1919
else:
20-
from typing import Annotated, Literal
20+
from typing import Annotated
2121

22-
# Python < 3.8 does not have Literal in the enum module
22+
# Python < 3.8 does not have Literal
2323
if sys.version_info < (3, 8):
2424
from typing_extensions import Literal
2525
else:

0 commit comments

Comments
 (0)