diff --git a/src/index.ts b/src/index.ts index fb0ede5..9574356 100644 --- a/src/index.ts +++ b/src/index.ts @@ -65,9 +65,7 @@ function toPythonTypeX(type: XtpNormalizedType): string { function toPythonType(property: XtpTyped): string { - let t = toPythonTypeX(property.xtpType); - if (isOptional(t)) return t; - return `Optional[${t}]`; + return toPythonTypeX(property.xtpType); } function toPythonParamType(property: XtpTyped): string {