File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/core/typescript/itk-wasm/src/bindgen/python/wasi Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ from itkwasm import (
201
201
} else {
202
202
if ( parameter . type . startsWith ( 'TEXT:{' ) ) {
203
203
const choices = parameter . type . split ( '{' ) [ 1 ] . split ( '}' ) [ 0 ] . split ( ',' )
204
- args += ` if ${ snake } not in (${ choices . map ( ( c ) => `'${ c } '` ) . join ( ',' ) } ):\n`
204
+ args += ` if ${ snake } not in (${ choices . map ( ( c ) => `'${ c } '` ) . join ( ', ' ) } ):\n`
205
205
args += ` raise ValueError(f'${ snake } must be one of ${ choices . join ( ', ' ) } ')\n`
206
206
}
207
207
args += ` args.append(str(value))\n`
@@ -234,9 +234,9 @@ from itkwasm import (
234
234
} else {
235
235
args += ` if ${ snake } :\n`
236
236
if ( parameter . type . startsWith ( 'TEXT:{' ) ) {
237
- const choices = parameter . type . split ( '{' ) [ 1 ] . split ( '}' ) [ 0 ] . split ( ',' )
238
- args += ` if ${ snake } not in (${ choices . map ( ( c ) => `'${ c } '` ) . join ( ',' ) } ):\n`
239
- args += ` raise ValueError(f'${ snake } must be one of ${ choices . join ( ', ' ) } ')\n`
237
+ const choices = parameter . type . split ( '{' ) [ 1 ] . split ( '}' ) [ 0 ] . split ( ', ' )
238
+ args += ` if ${ snake } not in (${ choices . map ( ( c ) => `'${ c } '` ) . join ( ',' ) } ):\n`
239
+ args += ` raise ValueError(f'${ snake } must be one of ${ choices . join ( ', ' ) } ')\n`
240
240
}
241
241
args += ` args.append('--${ parameter . name } ')\n`
242
242
args += ` args.append(str(${ snake } ))\n`
You can’t perform that action at this time.
0 commit comments