Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Fixes Issue 422, const in python #443

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def validate(
{{#if ../constInfo}}
) -> typing.Literal[
{{#each ../constInfo.typeToValues.string}}
"{{{value}}}",
"{{{@key.value}}}",
{{/each}}
]:
{{else}}
Expand All @@ -156,7 +156,7 @@ def validate(
{{#if ../constInfo}}
) -> typing.Literal[
{{#each ../constInfo.typeToValues.integer}}
{{{value}}},
{{{@key.value}}},
{{/each}}
]:
{{else}}
Expand Down Expand Up @@ -198,7 +198,7 @@ def validate(
{{#eq this "string"}}
return typing.cast(typing.Literal[
{{#each ../constInfo.typeToValues.string}}
"{{{value}}}",
"{{{@key.value}}}",
{{/each}}
],
validated_arg
Expand Down