Skip to content

Commit 02b7b4b

Browse files
committed
make default a positional arg on Field
1 parent 064065b commit 02b7b4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aredis_om/model/model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,8 @@ def schema(self):
11761176

11771177

11781178
def Field(
1179+
default: Any = ...,
1180+
*,
11791181
primary_key: bool = False,
11801182
sortable: Union[bool, UndefinedType] = Undefined,
11811183
case_sensitive: Union[bool, UndefinedType] = Undefined,
@@ -1186,6 +1188,7 @@ def Field(
11861188
) -> Any:
11871189
field_info = FieldInfo(
11881190
**kwargs,
1191+
default=default,
11891192
primary_key=primary_key,
11901193
sortable=sortable,
11911194
case_sensitive=case_sensitive,

0 commit comments

Comments
 (0)