File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,9 @@ def type_loader(
442
442
init = "new MapLoader<{}>({}, {}, {})" .format (
443
443
i .instance_type ,
444
444
i .name ,
445
- f"'{ container } '" if container is not None else None , # noqa: B907
445
+ (
446
+ f"'{ container } '" if container is not None else self .to_dotnet (None )
447
+ ), # noqa: B907
446
448
self .to_dotnet (no_link_check ),
447
449
),
448
450
)
@@ -459,7 +461,9 @@ def type_loader(
459
461
name = self .safe_name (type_declaration ["name" ]) + "Loader" ,
460
462
init = "new RecordLoader<{}>({}, {})" .format (
461
463
self .safe_name (type_declaration ["name" ]),
462
- f"'{ container } '" if container is not None else None , # noqa: B907
464
+ (
465
+ f"'{ container } '" if container is not None else self .to_dotnet (None )
466
+ ), # noqa: B907
463
467
self .to_dotnet (no_link_check ),
464
468
),
465
469
loader_type = "ILoader<{}>" .format (self .safe_name (type_declaration ["name" ])),
Original file line number Diff line number Diff line change @@ -471,7 +471,9 @@ def type_loader(
471
471
name = f"map_of_{ i .name } " ,
472
472
init = "new MapLoader({}, {}, {})" .format (
473
473
i .name ,
474
- f"'{ container } '" if container is not None else None , # noqa: B907
474
+ (
475
+ f"'{ container } '" if container is not None else self .to_java (None )
476
+ ), # noqa: B907
475
477
self .to_java (no_link_check ),
476
478
),
477
479
loader_type = f"Loader<java.util.Map<String, { i .instance_type } >>" ,
@@ -494,7 +496,9 @@ def type_loader(
494
496
clazz = fqclass ,
495
497
ext = "Impl" if not is_abstract else "" ,
496
498
container = (
497
- f"'{ container } '" if container is not None else None # noqa: B907
499
+ f"'{ container } '"
500
+ if container is not None
501
+ else self .to_java (None ) # noqa: B907
498
502
),
499
503
no_link_check = self .to_java (no_link_check ),
500
504
),
You can’t perform that action at this time.
0 commit comments