diff options
author | Alexandru Fikl <alexfikl@gmail.com> | 2024-04-25 16:50:30 +0300 |
---|---|---|
committer | Alex Fikl <alexfikl@gmail.com> | 2024-04-25 16:57:20 +0300 |
commit | 0eff41a5c6deffdea5a7023511e432b25a6fba34 (patch) | |
tree | 31f7d0bfc4f02d49d45dcd7874058c6241040694 | |
parent | a8f927a02e84e0a76983d125c65e9f7abf636725 (diff) |
fix: types for mypy 1.10.0
-rw-r--r-- | papis/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/papis/format.py b/papis/format.py index 28e85483..15e1ba23 100644 --- a/papis/format.py +++ b/papis/format.py @@ -87,7 +87,7 @@ class _PythonStringFormatter(string.Formatter): 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": |