Skip to content

Commit 5525961

Browse files
committed
doc: add missing types to generated code
1 parent 9d7ea03 commit 5525961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/python/features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ let add a b = Py.python $"""return {a+b}"""
452452
generates:
453453

454454
```py
455-
def add(a, b):
455+
def add(a: int32, b: int32) -> Any:
456456
return a + b
457457
```
458458

@@ -481,7 +481,7 @@ generates:
481481
@dataclasses.dataclass
482482
class User:
483483
name: str
484-
age: int
484+
age: int32
485485
```
486486

487487
You can also pass parameters to decorators:

0 commit comments

Comments
 (0)