Skip to content

Commit 3b4e386

Browse files
connesypawamoy
andauthored
Only type-ignore arg type
Co-authored-by: Timothée Mazzucotelli <[email protected]>
1 parent 9b148e0 commit 3b4e386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/griffe_warnings_deprecated/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _deprecated(obj: Class | Function) -> str | None:
1919
if decorator.callable_path in _decorators and isinstance(decorator.value, ExprCall):
2020
first_arg = decorator.value.arguments[0]
2121
try:
22-
return ast.literal_eval(first_arg) # type: ignore
22+
return ast.literal_eval(first_arg) # type: ignore[arg-type]
2323
except ValueError:
2424
logger.debug("%s is not a static string", str(first_arg))
2525
return None

0 commit comments

Comments
 (0)