Skip to content

Commit

Permalink
Really don't get mypy sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Sep 30, 2024
1 parent 2ea2d01 commit f9787a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gotenberg_client/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def to_form(self, name: str) -> Dict[str, str]:
if self.unit == MarginUnitType.Undefined:
return optional_to_form(self.value, name)
else:
return optional_to_form(f"{self.value}{self.unit.value}", name)
# Fail to see how mypy thinks this is "Any"
return optional_to_form(f"{self.value}{self.unit.value}", name) # type: ignore[misc]


@dataclasses.dataclass
Expand Down

0 comments on commit f9787a3

Please sign in to comment.