-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recreate
AssetChecksDefinition
s after setting prefix (#25271)
## Summary & Motivation This makes sure that the `load_asset_checks_from_*` functions return `[AssetChecksDefinition]` by replacing the typecast with the creation of an actual `AssetChecksDefinition`. Alternatively, this issue could be addressed by adding a specialized `with_attributes()` method to `AssetChecksDefinition` to make it return the correct type. I'd be happy to try this path as well! But it feels like this change would be sufficient and minimally impactful across the codebase. Closes #22064 ## How I Tested These Changes Added an `isinstance` check to the `load_asset_checks_from_*` tests
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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