Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.3k
Selftype with TupleType#2436
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
Uh oh!
There was an error while loading. Please reload this page.
Selftype with TupleType #2436
Changes from all commits
488581ceb4e6871c7f7781290bd7c2fde7b42ca962cad2256d528c4aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -391,7 +391,7 @@ def f(x: Union[List[int], List[str], int]) -> None: | ||
| else: | ||
| x[0] # E: Value of type "int" is not indexable | ||
| x + 1 | ||
| x[0] # E: Value of type "int" is not indexable | ||
| x[0] # E: Value of type "Union[List[int], List[str], int]" is not indexable | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing this is because of the better determination of | ||
| x + 1 # E: Unsupported operand types for + (likely involving Union) | ||
| [builtins fixtures/isinstancelist.pyi] | ||
| [out] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that you've made this mandatory and passed it explicitly everywhere, do you still need line 53 below? (
original_type = original_type or typ-- I can't put a comment there.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I was about to remove it