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 a bug that resulted in incorrect hover results for identifiers … #5466

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

erictraut
Copy link
Collaborator

…used as keys or values within a dictionary expression. This addresses #5422.

…used as keys or values within a dictionary expression. This addresses #5422.
@github-actions
Copy link
Contributor

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

freqtrade (https://github.com/freqtrade/freqtrade)
-   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1008:26 - error: Expression of type "dict[str, RPCMessageType | str | float | datetime | bool | None]" cannot be assigned to declared type "RPCBuyMsg"
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1008:26 - error: Expression of type "dict[str, RPCMessageType | Unknown | str | float | Any | datetime | bool | None]" cannot be assigned to declared type "RPCBuyMsg"
-   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1041:29 - error: Expression of type "dict[str, RPCMessageType | str | float | bool | None]" cannot be assigned to declared type "RPCCancelMsg"
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1041:29 - error: Expression of type "dict[str, RPCMessageType | Unknown | str | Any | float | bool | None]" cannot be assigned to declared type "RPCCancelMsg"
-   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1730:27 - error: Expression of type "dict[str, RPCMessageType | str | float | datetime | bool | None]" cannot be assigned to declared type "RPCSellMsg"
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1730:27 - error: Expression of type "dict[str, RPCMessageType | Unknown | str | float | datetime | Any | bool | None]" cannot be assigned to declared type "RPCSellMsg"
-   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1785:33 - error: Expression of type "dict[str, RPCMessageType | str | float | datetime | bool | None]" cannot be assigned to declared type "RPCSellCancelMsg"
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/freqtradebot.py:1785:33 - error: Expression of type "dict[str, RPCMessageType | Unknown | str | float | int | datetime | Any | bool | None]" cannot be assigned to declared type "RPCSellCancelMsg"

pandera (https://github.com/pandera-dev/pandera)
-   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/container.py:1224:50 - error: Expression of type "dict[str, Any] | dict[Unknown | None, Any]" cannot be assigned to declared type "Dict[str, Any]"
+   /tmp/mypy_primer/projects/pandera/pandera/api/pandas/container.py:1224:50 - error: Expression of type "dict[str, Any] | dict[Unknown | None, Index | Unknown]" cannot be assigned to declared type "Dict[str, Any]"
-     Type "dict[str, Any] | dict[Unknown | None, Any]" cannot be assigned to type "Dict[str, Any]"
+     Type "dict[str, Any] | dict[Unknown | None, Index | Unknown]" cannot be assigned to type "Dict[str, Any]"
-       "dict[Unknown | None, Any]" is incompatible with "Dict[str, Any]"
+       "dict[Unknown | None, Index | Unknown]" is incompatible with "Dict[str, Any]"

dd-trace-py (https://github.com/DataDog/dd-trace-py)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/aioredis/patch.py:151:24 - error: Argument of type "dict[str, Text | Unknown | int]" cannot be assigned to parameter "tags" of type "_MetaDictType" in function "set_tags"
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/aioredis/patch.py:151:24 - error: Argument of type "dict[str, Unknown | int]" cannot be assigned to parameter "tags" of type "_MetaDictType" in function "set_tags"
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/aioredis/patch.py:205:28 - error: Argument of type "dict[str, Text | Unknown | int]" cannot be assigned to parameter "tags" of type "_MetaDictType" in function "set_tags"
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/aioredis/patch.py:205:28 - error: Argument of type "dict[str, Unknown | int]" cannot be assigned to parameter "tags" of type "_MetaDictType" in function "set_tags"

@erictraut erictraut merged commit c2094c0 into main Jul 11, 2023
12 checks passed
@erictraut erictraut deleted the issue5422 branch July 11, 2023 22:04
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.

2 participants