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

Added logic to expand promotion types for float and complex when … #8024

Closed
wants to merge 1 commit into from

Conversation

erictraut
Copy link
Collaborator

…these types are used in a member access expression (i.e. the LHS of a "dot" operator).

…these types are used in a member access expression (i.e. the LHS of a "dot" operator).
Copy link
Contributor

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

dd-trace-py (https://github.com/DataDog/dd-trace-py)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_iast/_taint_tracking/aspects.py:479:39 - error: Argument of type "str | memoryview" cannot be assigned to parameter "sub" of type "str" in function "index"
-     Type "str | memoryview" is incompatible with type "str"
-       "memoryview" is incompatible with "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/llmobs/_integrations/bedrock.py
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/llmobs/_integrations/bedrock.py:43:13 - error: Argument of type "int" cannot be assigned to parameter "value" of type "float" in function "__setitem__"
+     "int" is incompatible with "float" (reportArgumentType)
+   /tmp/mypy_primer/projects/dd-trace-py/tests/contrib/botocore/test_bedrock_llmobs.py:87:13 - error: Argument of type "int" cannot be assigned to parameter "value" of type "float" in function "__setitem__"
+     "int" is incompatible with "float" (reportArgumentType)
- 11158 errors, 528 warnings, 0 informations 
+ 11159 errors, 528 warnings, 0 informations 

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