Fix default string option rendering

This commit is contained in:
2025-08-20 03:08:28 +03:00
parent b11266990b
commit 0786fc600a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "megasniff" name = "megasniff"
version = "0.2.3" version = "0.2.3.post1"
description = "Library for in-time codegened type validation" description = "Library for in-time codegened type validation"
authors = [ authors = [
{ name = "nikto_b", email = "niktob560@yandex.ru" } { name = "nikto_b", email = "niktob560@yandex.ru" }

View File

@@ -219,7 +219,7 @@ class SchemaInflatorGenerator:
utils.typename(argtype), utils.typename(argtype),
has_default, has_default,
allow_none, allow_none,
default_option, default_option if not isinstance(default_option, str) else f"'{default_option}'",
) )
) )