Skip to content

Commit fa69e6c

Browse files
Natarajan Krishnaswaminkrishnaswami
authored andcommitted
Use Dict[] instead of dict[]
1 parent 70fdb49 commit fa69e6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_attribute_keyed_dict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enum import Enum
2-
from typing import Optional
2+
from typing import Dict, Optional
33

44
from sqlalchemy.orm.collections import attribute_keyed_dict
55
from sqlmodel import Field, Index, Relationship, Session, SQLModel, create_engine
@@ -25,7 +25,7 @@ class Parent(SQLModel, table=True):
2525
__tablename__ = "parents"
2626

2727
id: Optional[int] = Field(primary_key=True, default=None)
28-
children_by_color: dict[Color, Child] = Relationship(
28+
children_by_color: Dict[Color, Child] = Relationship(
2929
sa_relationship_kwargs={"collection_class": attribute_keyed_dict("color")}
3030
)
3131

0 commit comments

Comments
 (0)