Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jun 26, 2024
1 parent d522368 commit 5767271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voluptuous/schema_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def key_literal(key):
result[key] = value

# recompile and send old object
result_cls = type(self)
result_cls = typing.cast("type[Schema[dict]]", type(self))
result_required = required if required is not None else self.required
result_extra = extra if extra is not None else self.extra
return result_cls(result, required=result_required, extra=result_extra)
Expand Down

0 comments on commit 5767271

Please sign in to comment.