-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature / user-function input/output field decorators (#1072)
* tentatively-named decorators for setting user-function data attributes. SimSpecs and GenSpecs can extract and set * wrappers append input/output attributes to top of wrapped function docstrings * bold labels * add persistent_input_fields decorator * initial docstrings for decorator functions * first pass on briefly mentioning decorators in generator function guide * use synced tabs to compare decorated and non-decorated functions and their specs * add import line for decorators, fix specs formatting * re-add / implement attribute-setting validators for pydantic 1/2 models * bugfix
- Loading branch information
Showing
8 changed files
with
301 additions
and
74 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
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.