Skip to content

Commit

Permalink
fix: types for mypy 1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Apr 25, 2024
1 parent a8f927a commit 0eff41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papis/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def format_field(self, value: Any, format_spec: str) -> Any:

return super().format_field(value, format_spec)

def convert_field(self, value: Any, conversion: str) -> Any:
def convert_field(self, value: Any, conversion: Optional[str]) -> Any:
if conversion == "l":
return str(value).lower()
if conversion == "u":
Expand Down

0 comments on commit 0eff41a

Please sign in to comment.