Skip to content

Commit 61f9b70

Browse files
Bump mypy to 1.19.0 (#14135)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
1 parent ded587e commit 61f9b70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ translations = [
128128
"Jinja2>=3.1",
129129
]
130130
types = [
131-
"mypy==1.18.2",
131+
"mypy==1.19.0",
132132
"pyrefly",
133133
"pyright==1.1.407",
134134
"ty",

sphinx/ext/autodoc/_dynamic/_type_comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def get_type_comment(obj: Any, bound_method: bool = False) -> Signature | None:
143143
type_comment = getattr(subject, 'type_comment', None)
144144
if type_comment:
145145
function = ast.parse(type_comment, mode='func_type', type_comments=True)
146-
return signature_from_ast(subject, bound_method, function) # type: ignore[arg-type]
146+
return signature_from_ast(subject, bound_method, function)
147147
else:
148148
return None
149149
except (OSError, TypeError): # failed to load source code

0 commit comments

Comments
 (0)