Skip to content

Commit 37e75de

Browse files
author
Tomasz Kulik
committed
chore: Update python codegen
1 parent f3f338c commit 37e75de

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

packages/cw-schema-codegen/src/python/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ fn expand_node_name<'a>(
3535
format!("[{}]", items).into()
3636
}
3737
cw_schema::NodeType::Enum { .. } => node.name.as_ref().into(),
38-
3938
cw_schema::NodeType::Decimal { .. } => "decimal.Decimal".into(),
4039
cw_schema::NodeType::Address => "str".into(),
41-
cw_schema::NodeType::Checksum => todo!(),
42-
cw_schema::NodeType::HexBinary => todo!(),
43-
cw_schema::NodeType::Timestamp => todo!(),
40+
cw_schema::NodeType::Checksum => "str".into(),
41+
cw_schema::NodeType::HexBinary => "str".into(),
42+
cw_schema::NodeType::Timestamp => "str".into(),
4443
cw_schema::NodeType::Unit => "None".into(),
4544
}
4645
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
source: packages/cw-schema-codegen/tests/python_tpl.rs
3+
expression: output
4+
snapshot_kind: text
5+
---
6+
# This code is @generated by cw-schema-codegen. Do not modify this manually.
7+
8+
import typing
9+
import decimal
10+
from pydantic import BaseModel, RootModel
11+
12+
13+
14+
class UnitStructure(RootModel):
15+
''''''
16+
root: None

0 commit comments

Comments
 (0)