Skip to content

Commit 2241b8d

Browse files
committed
LiteralType -> LiteralTypeExpr
1 parent d3bf487 commit 2241b8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/replit_river/codegen/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ def extract_props(tpe: RiverType) -> list[dict[str, RiverType]]:
496496
typeddict_encoder.append("None")
497497
return (NoneTypeExpr(), [], [], set())
498498
elif type.type == "Date":
499-
typeddict_encoder.append("TODO: dstewart")
500-
return (LiteralType("datetime.datetime"), [], [], set())
499+
typeddict_encoder.append("datetime.datetime")
500+
return (LiteralTypeExpr("datetime.datetime"), [], [], set())
501501
elif type.type == "array" and type.items:
502502
type_name, module_info, type_chunks, encoder_names = encode_type(
503503
type.items,

0 commit comments

Comments
 (0)