Skip to content

Follow-up after #19025: test and cleanup #19294

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sterliakov
Copy link
Collaborator

@sterliakov sterliakov commented Jun 13, 2025

As requested by @ilevkivskyi in #19025

@sterliakov sterliakov marked this pull request as draft June 13, 2025 16:33

This comment has been minimized.

@sterliakov sterliakov changed the title Fix merge conflict from #19025 Follow-up after #19025: test and cleanup Jun 18, 2025
@sterliakov sterliakov force-pushed the hotfix/st-restore-is-staticmethod branch from e022f9c to 3bbd0d6 Compare June 18, 2025 15:54

This comment has been minimized.

@sterliakov
Copy link
Collaborator Author

The primer change is bad but unrelated. Opened #19358 to address it.

@sterliakov sterliakov requested a review from ilevkivskyi June 29, 2025 23:15
@sterliakov sterliakov marked this pull request as ready for review June 29, 2025 23:15

This comment has been minimized.

hauntsaninja pushed a commit that referenced this pull request Jun 30, 2025
…mapping (#19358)

This was discovered in #19294 where an unrelated change produced a weird
notice that should not be shown. Current behavior of the added testcase:

```
main.py:10: error: Argument 1 to "foo" has incompatible type "*list[object]"; expected "P"  [arg-type]
main.py:10: note: "list" is missing following "P" protocol member:
main.py:10: note:     arg
main.py:11: error: Argument 1 to "foo" has incompatible type "**dict[str, object]"; expected "P"  [arg-type]
main.py:11: note: "dict" is missing following "P" protocol member:
main.py:11: note:     arg
```


https://mypy-play.net/?mypy=master&python=3.12&flags=strict&gist=d0228ba7d2802db8ac4457f374ccc148
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant