Skip to content

Commit ed2f42f

Browse files
authored
mypy-ification of fix
1 parent 0c2d878 commit ed2f42f

File tree

1 file changed

+1
-4
lines changed
  • geos-trame/src/geos/trame/app/deck

1 file changed

+1
-4
lines changed

geos-trame/src/geos/trame/app/deck/tree.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,7 @@ def _set_base_model_properties( model: dict, proxy_path: str, properties: dict )
286286

287287
if proxy_name.isnumeric() and int( proxy_name ) < len( model_copy ):
288288
models.append( ( proxy_name, model_copy ) )
289-
if is_list:
290-
proxy_name = int(proxy_name)
291-
#won't work if is_list # TO DO IMMEDIATELY -- review proxy strat
292-
model_copy = model_copy[ proxy_name ]
289+
model_copy = model_copy[ int(proxy_name) if is_list else proxy_name ]
293290
continue
294291

295292
if proxy_name in model_copy:

0 commit comments

Comments
 (0)