Skip to content

Commit 3d10e44

Browse files
committed
Fix dotnot generator as well
1 parent 2b3a9c3 commit 3d10e44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema_salad/dotnet_codegen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def type_loader(
442442
init="new MapLoader<{}>({}, {}, {})".format(
443443
i.instance_type,
444444
i.name,
445-
f"'{container}'" if container is not None else None, # noqa: B907
445+
f"'{container}'" if container is not None else self.to_dotnet(None), # noqa: B907
446446
self.to_dotnet(no_link_check),
447447
),
448448
)
@@ -459,7 +459,7 @@ def type_loader(
459459
name=self.safe_name(type_declaration["name"]) + "Loader",
460460
init="new RecordLoader<{}>({}, {})".format(
461461
self.safe_name(type_declaration["name"]),
462-
f"'{container}'" if container is not None else None, # noqa: B907
462+
f"'{container}'" if container is not None else self.to_dotnet(None), # noqa: B907
463463
self.to_dotnet(no_link_check),
464464
),
465465
loader_type="ILoader<{}>".format(self.safe_name(type_declaration["name"])),

0 commit comments

Comments
 (0)