Skip to content

Commit

Permalink
Fix for failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Jun 22, 2023
1 parent 07a8290 commit e58191f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mashumaro/core/meta/code/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _add_unpack_method_lines(self, method_name: str) -> None:
if field and not field.init:
continue
if self.get_field_default(fname) is MISSING:
if field and not getattr(field, "kw_only", False):
if field and not getattr(field, "kw_only", True):
pos_args.append(fname)
else:
kw_args.append(fname)
Expand Down

0 comments on commit e58191f

Please sign in to comment.