-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The decorator now returns a custom descriptor object instead of a wrapper function. The descriptor can then keep the `self` and database interface objects separate without having to reverse the normal argument order.
- Loading branch information
Showing
8 changed files
with
440 additions
and
145 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
from .bases import ( | ||
PrefectBaseModel, | ||
ActionBaseModel, | ||
IDBaseModel, | ||
ORMBaseModel, | ||
ActionBaseModel, | ||
PrefectBaseModel, | ||
PrefectDescriptorBase, | ||
get_class_fields_only, | ||
) | ||
|
||
__all__ = [ | ||
"ActionBaseModel", | ||
"IDBaseModel", | ||
"ORMBaseModel", | ||
"PrefectBaseModel", | ||
"PrefectDescriptorBase", | ||
"get_class_fields_only", | ||
] |
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
Oops, something went wrong.