Skip to content

Commit 623f714

Browse files
committed
fix annotations for python < 3.10
1 parent ad07cee commit 623f714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aredis_om/model/model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ class PrimaryKey:
12031203

12041204

12051205
class RedisOmConfig(ConfigDict):
1206-
index: bool | None
1206+
index: Optional[bool]
12071207

12081208

12091209
class BaseMeta(Protocol):
@@ -1935,7 +1935,7 @@ def schema_for_type(
19351935
json_path: str,
19361936
name: str,
19371937
name_prefix: str,
1938-
typ: type[RedisModel] | Any,
1938+
typ: Union[type[RedisModel], Any],
19391939
field_info: PydanticFieldInfo,
19401940
parent_type: Optional[Any] = None,
19411941
) -> str:

0 commit comments

Comments
 (0)