Skip to content

Commit 7876771

Browse files
committed
Try to support RTD older Python version with future import
1 parent 8457ba3 commit 7876771

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/mock_vws/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import uuid
88
from dataclasses import dataclass, field
9-
from typing import Set, TypedDict
9+
from typing import List, Set, TypedDict
1010

1111
from mock_vws._constants import TargetStatuses
1212
from mock_vws.states import States
@@ -24,7 +24,7 @@ class DatabaseDict(TypedDict):
2424
client_access_key: str
2525
client_secret_key: str
2626
state_name: str
27-
targets: list[TargetDict]
27+
targets: List[TargetDict]
2828

2929

3030
def _random_hex() -> str:

src/mock_vws/target.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class TargetDict(TypedDict):
2323
A dictionary type which represents a target.
2424
"""
2525

26+
# We cannot use the `X | Y` sytanx for `Union`s and `Optional`s until
27+
# https://github.com/sphinx-doc/sphinx/issues/8775 is resolved.
2628
name: str
2729
width: float
2830
image_base64: str

0 commit comments

Comments
 (0)