-
Notifications
You must be signed in to change notification settings - Fork 12
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
DM-33271: Fix mypy warnings with 0.931 #631
Merged
Merged
Commits on Jan 14, 2022
-
Fix some issues with ResourcePathExpression
Not all the cases where str+ResourcePath were converted to ResourcePathExpression were correct and some were missed.
Configuration menu - View commit details
-
Copy full SHA for 8145f51 - Browse repository at this point
Copy the full SHA 8145f51View commit details -
Configuration menu - View commit details
-
Copy full SHA for aebb0e7 - Browse repository at this point
Copy the full SHA aebb0e7View commit details -
Fix problem with mypy and getattr
mypy can't tell the type returned by a getattr so an assert must be included.
Configuration menu - View commit details
-
Copy full SHA for 308c720 - Browse repository at this point
Copy the full SHA 308c720View commit details -
Configuration menu - View commit details
-
Copy full SHA for 222e068 - Browse repository at this point
Copy the full SHA 222e068View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13c89bf - Browse repository at this point
Copy the full SHA 13c89bfView commit details -
Ignore keys return values in named mappings
types.Mapping expects .keys() to return KeysView but these classes return an AbstractSet. The set is compatible with KeysView to the extent we need but KeysView is a concrete class and not an abstract one so it is not desirable to involve it. For now this means we ignore the warning.
Configuration menu - View commit details
-
Copy full SHA for 80e8f6d - Browse repository at this point
Copy the full SHA 80e8f6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f8c197 - Browse repository at this point
Copy the full SHA 3f8c197View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1061e04 - Browse repository at this point
Copy the full SHA 1061e04View commit details -
Force a placeholder path in dataset yaml
FileDataset always assumed this was mandatory but this was only just enforced.
Configuration menu - View commit details
-
Copy full SHA for 3442941 - Browse repository at this point
Copy the full SHA 3442941View commit details -
Configuration menu - View commit details
-
Copy full SHA for 066d287 - Browse repository at this point
Copy the full SHA 066d287View commit details -
Some versions of mypy get upset with the return type for ButlerURI.__new__ not being ButlerURI. Others do not complain. Since this is purely a compatibility layer, configure mypy to ignore the errors if they happen.
Configuration menu - View commit details
-
Copy full SHA for f0c8fd3 - Browse repository at this point
Copy the full SHA f0c8fd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f774ee9 - Browse repository at this point
Copy the full SHA f774ee9View commit details
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.