-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Deep magic underscore error messages rebase #2843
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
Merged
nicolaskruchten
merged 26 commits into
master
from
deep-magic-underscore-error-msg-rebase
Nov 16, 2020
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2209b2d
Better magic underscore errors
nicholas-esterer afd5b7a
Remove whitespace-only changes
nicholas-esterer b894b89
Assert that errors are raised
nicholas-esterer 4c659db
Also state when a property doesn't support subscripting
nicholas-esterer 2bf2526
Tests for non-subscriptable property errors
nicholas-esterer 5695969
updated changelog
nicholas-esterer 22b3e03
Improved error message when subscripting types that don't support it
nicholas-esterer c09c03e
Removed garbage line from test_dict_path_errors.py
nicholas-esterer f4be2b1
Changed PlotlyKeyError's superclass to KeyError
nicholas-esterer 73051a6
BasePlotlyType._raise_on_invalid_property_error raises PlotlyKeyError
nicholas-esterer 651b712
Cast some errors to PlotlyKeyError
nicholas-esterer 9bb2470
Updated the tests to reflect the new Exception behaviour
nicholas-esterer bf4cd97
BasePlotlyType.__setitem__ exceptions casted to ValueError
nicholas-esterer 7d42ffe
Merge master's whitespace changes
nicholas-esterer a18b341
Merge branch 'master' into deep-magic-underscore-error-msg-rebase
nicholas-esterer 4bda7b2
Now subscripting errors triggered on types throwing TypeError
nicholas-esterer 9e1b667
subscripting error tests compatible with Python2
nicholas-esterer d6aee64
Changed dict path error display to always ^
nicholas-esterer c6e5b4d
Try taking length of string-like objects
nicholas-esterer 82f9bb1
leading, trailing, multiple underscores detected in dict path strings
nicholas-esterer 70f18ca
Added tests for leading, trailing and embedded extra underscore errors
nicholas-esterer 00851fa
Complain about trailing underscores, find closest key
nicholas-esterer d2bc400
Updated error messages for trailing underscores and find closest key
nicholas-esterer 20518c1
Key guessing before and after list of valid properties
nicholas-esterer 4066ae2
Test single property key guessing
nicholas-esterer 86f4217
Merge branch 'master' into deep-magic-underscore-error-msg-rebase
nicholas-esterer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
please move this to the 4.13 block