We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feb5f05 commit 14a4455Copy full SHA for 14a4455
1 file changed
src/index.ts
@@ -65,9 +65,7 @@ function toPythonTypeX(type: XtpNormalizedType): string {
65
66
67
function toPythonType(property: XtpTyped): string {
68
- let t = toPythonTypeX(property.xtpType);
69
- if (isOptional(t)) return t;
70
- return `Optional[${t}]`;
+ return toPythonTypeX(property.xtpType);
71
}
72
73
function toPythonParamType(property: XtpTyped): string {
0 commit comments