Skip to content

Commit 3474bb2

Browse files
committed
Silent a mypy warning
1 parent 23a2806 commit 3474bb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygmt/helpers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _check_encoding(
181181
if encoding == "ISO-8859-12": # ISO-8859-12 was abandoned. Skip it.
182182
continue
183183
if all(c in (set(charset[encoding].values()) | adobe_chars) for c in argstr):
184-
return encoding
184+
return encoding # type: ignore[return-value]
185185
# Return the "ISOLatin1+" encoding if the string contains characters from multiple
186186
# charset encodings or contains characters that are not in any charset encoding.
187187
return "ISOLatin1+"

0 commit comments

Comments
 (0)