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

Changed the evaluated type of an in or not in operator to be `boo… #9328

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

erictraut
Copy link
Collaborator

…lif the LHS doesn't support containment. Previously, the expression evaluated toNever`. This addresses #9327.

…l` if the LHS doesn't support containment. Previously, the expression evaluated to `Never`. This addresses #9327.
Copy link
Contributor

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

bokeh (https://github.com/bokeh/bokeh)
+   /tmp/mypy_primer/projects/bokeh/examples/server/app/line_on_off.py:22:8 - error: Cannot assign to attribute "visible" for class "GlyphRenderer"
+     Expression of type "bool" cannot be assigned to attribute "visible" of class "GlyphRenderer"
+       "bool" is not assignable to "Bool" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bokeh/examples/server/app/line_on_off.py:23:8 - error: Cannot assign to attribute "visible" for class "GlyphRenderer"
+     Expression of type "bool" cannot be assigned to attribute "visible" of class "GlyphRenderer"
+       "bool" is not assignable to "Bool" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bokeh/examples/server/app/line_on_off.py:24:8 - error: Cannot assign to attribute "visible" for class "GlyphRenderer"
+     Expression of type "bool" cannot be assigned to attribute "visible" of class "GlyphRenderer"
+       "bool" is not assignable to "Bool" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bokeh/tests/unit/bokeh/command/subcommands/apps/line_on_off.py:25:8 - error: Cannot assign to attribute "visible" for class "GlyphRenderer"
+     Expression of type "bool" cannot be assigned to attribute "visible" of class "GlyphRenderer"
+       "bool" is not assignable to "Bool" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bokeh/tests/unit/bokeh/command/subcommands/apps/line_on_off.py:26:8 - error: Cannot assign to attribute "visible" for class "GlyphRenderer"
+     Expression of type "bool" cannot be assigned to attribute "visible" of class "GlyphRenderer"
+       "bool" is not assignable to "Bool" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bokeh/tests/unit/bokeh/command/subcommands/apps/line_on_off.py:27:8 - error: Cannot assign to attribute "visible" for class "GlyphRenderer"
+     Expression of type "bool" cannot be assigned to attribute "visible" of class "GlyphRenderer"
+       "bool" is not assignable to "Bool" (reportAttributeAccessIssue)
- 3547 errors, 294 warnings, 0 informations 
+ 3553 errors, 294 warnings, 0 informations 

@erictraut erictraut merged commit 1579b06 into main Oct 25, 2024
18 checks passed
@erictraut erictraut deleted the issue-9327 branch October 25, 2024 21:48
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