Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Nov 14, 2023
1 parent b75801b commit b7d6435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mashumaro/jsonschema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def fields(self) -> Iterable[Tuple[str, Type, bool, Any]]:
for f_name, f_type in self._self_builder.get_field_types(
include_extras=True
).items():
f = self._self_builder.dataclass_fields.get(f_name) # type: ignore
if f and not f.init:
f = self._self_builder.dataclass_fields.get(f_name)
if not f or f and not f.init:
continue
f_default = f.default
if f_default is MISSING:
Expand Down

0 comments on commit b7d6435

Please sign in to comment.