Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve error messages for missing annotations (return type + arguments)#19125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
charulatalodha wants to merge21 commits intopython:master
base:master
Choose a base branch
Loading
fromcharulatalodha:master
Open
Changes from2 commits
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
766d4e7
syntax error messages capitalization
charulatalodhaMay 19, 2025
c48241d
Capitalise only first non space word in syntax err msg
May 19, 2025
afc2385
Merge branch 'master' into master
charulatalodhaMay 19, 2025
250f0f2
Update fastparse.py
amansomethingMay 19, 2025
a4dcdf5
Merge pull request #1 from amansomething/patch-1
charulatalodhaMay 19, 2025
a791f96
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]May 19, 2025
45d0000
Fix Test suite py39-windows-64, py39-ubuntu, mypyc-compiled
May 19, 2025
1a53c8f
Merge branch 'master' into master
charulatalodhaMay 20, 2025
40e3eb5
Merge branch 'python:master' into master
charulatalodhaMay 21, 2025
0eb4a99
update check_for_missing_annotations to give note for None return typ…
May 21, 2025
284fe23
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]May 21, 2025
7b89fd9
fix err code for ARGUMENT_TYPE_EXPECTED NO_UNTYPED_DEF
May 21, 2025
a14d4a2
Merge branch 'master' of https://github.com/charulatalodha/mypy
May 21, 2025
54eed1a
update FUNCTION_TYPE_EXPECTED err handling, update tests
May 21, 2025
547b546
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]May 21, 2025
e3bba27
fix logic for return type annotation vs type annotation for when fdef…
May 21, 2025
e0d5071
Merge branch 'master' of https://github.com/charulatalodha/mypy
May 21, 2025
d5cefb8
fix test
May 21, 2025
e21aa69
Merge branch 'master' into master
charulatalodhaMay 27, 2025
86710b0
Merge branch 'master' into master
charulatalodhaMay 27, 2025
66d0c4b
Merge branch 'master' into master
charulatalodhaJun 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletionsmypy/checker.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2111,7 +2111,8 @@ def check_method_override(
and (self.options.check_untyped_defs or not defn.is_dynamic())
and (
# don't check override for synthesized __replace__ methods from dataclasses
defn.name != "__replace__" or defn.info.metadata.get("dataclass_tag") is None
defn.name != "__replace__"
or defn.info.metadata.get("dataclass_tag") is None
)
)
found_method_base_classes: list[TypeInfo] = []
Expand DownExpand Up@@ -4285,8 +4286,7 @@ def check_lvalue(
self.store_type(lvalue, lvalue_type)
elif isinstance(lvalue, (TupleExpr, ListExpr)):
types = [
self.check_lvalue(sub_expr)[0]
or
self.check_lvalue(sub_expr)[0] or
# This type will be used as a context for further inference of rvalue,
# we put Uninhabited if there is no information available from lvalue.
UninhabitedType()
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp