Bump mypy to 1.19.0 (#14135)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
dependabot[bot]andAdam Turner authored and GitHub committed 2025-12-01 12:37:30 +00:00
1 parent ded587ebc6
commit 61f9b70b3a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ translations = [
"Jinja2>=3.1",
]
types = [
"mypy==1.18.2",
"mypy==1.19.0",
"pyrefly",
"pyright==1.1.407",
"ty",
@@ -143,7 +143,7 @@ def get_type_comment(obj: Any, bound_method: bool = False) -> Signature | None:
type_comment = getattr(subject, 'type_comment', None)
if type_comment:
function = ast.parse(type_comment, mode='func_type', type_comments=True)
return signature_from_ast(subject, bound_method, function) # type: ignore[arg-type]
return signature_from_ast(subject, bound_method, function)
else:
return None
except (OSError, TypeError): # failed to load source code