Skip to content

Commit daaf07a

Browse files
committed
Added simple workaround for: https://bugs.python.org/issue46080
1 parent 80b0aee commit daaf07a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydantic_argparse/parsers/boolean.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def parse_field(
5252
help=utils.argument_description(field.field_info.description),
5353
dest=field.alias,
5454
required=True,
55+
default=None, # Bug workaround: https://bugs.python.org/issue46080
5556
)
5657

5758
elif default:

0 commit comments

Comments
 (0)