Skip to content
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

Fixed bug that results in a missing reportUnknownArgumentType error… #9431

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

erictraut
Copy link
Collaborator

… if the argument is an expression involving an __init__ parameter in an unannotated (pseudo-generic) class.

… if the argument is an expression involving an `__init__` parameter in an unannotated (pseudo-generic) class.
Copy link
Contributor

github-actions bot commented Nov 8, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

Tanjun (https://github.com/FasterSpeeding/Tanjun)
-     Argument type is "Unknown | type[_T@__getitem__]" (reportUnknownArgumentType)
+     Argument type is "Unknown | type[object]*" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/components.py:995:43 - warning: Argument type is unknown
+     Argument corresponds to parameter "event_type" in function "add_listener" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/Tanjun/tanjun/components.py:1006:42 - warning: Argument type is unknown
+     Argument corresponds to parameter "event_type" in function "remove_listener" (reportUnknownArgumentType)
-     Argument type is "_MessageCallbackSigT@decorator | ((MenuContext, Unknown, ...) -> Coroutine[Any, Any, None])" (reportUnknownArgumentType)
+     Argument type is "(MenuContext, Unknown, ...) -> Coroutine[Any, Any, None]" (reportUnknownArgumentType)
-     Argument type is "_UserCallbackSigT@decorator | ((MenuContext, Unknown, ...) -> Coroutine[Any, Any, None])" (reportUnknownArgumentType)
+     Argument type is "(MenuContext, Unknown, ...) -> Coroutine[Any, Any, None]" (reportUnknownArgumentType)
- 2515 errors, 6682 warnings, 0 informations 
+ 2515 errors, 6684 warnings, 0 informations 

@erictraut erictraut merged commit 6f9e229 into main Nov 8, 2024
18 checks passed
@erictraut erictraut deleted the pseudoArg branch November 8, 2024 18:23
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