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 (
201201 } else {
202202 if ( parameter . type . startsWith ( 'TEXT:{' ) ) {
203203 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`
205205 args += ` raise ValueError(f'${ snake } must be one of ${ choices . join ( ', ' ) } ')\n`
206206 }
207207 args += ` args.append(str(value))\n`
@@ -234,9 +234,9 @@ from itkwasm import (
234234 } else {
235235 args += ` if ${ snake } :\n`
236236 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`
240240 }
241241 args += ` args.append('--${ parameter . name } ')\n`
242242 args += ` args.append(str(${ snake } ))\n`
You can’t perform that action at this time.
0 commit comments