We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Change the syntax of reserved fields to reduce potential conflicts
Proposal Status: wip
Issue Number: 243
Proposal Doc: reserved-fields.md
Reserved variables
Prefix underscore -> private
Suffix with underscore
is_public: bool = False
args: list = []
kwargs: Union[str, dict] = None
kwargs: str = None
New
args_seperator_: str = None
V2 - 1
is_public_: bool = False
args_: list = []
kwargs_: str = None
_is_public: bool = False
_kwargs: str = None
env_: Any = None
Used in blocks / match hooks where new context is created. Needs to be public
because it will be mutable within a hook (see match).
skip_output: bool = False
_render_exclude_default: set = {
'input_context', 'public_context', 'hook_type', 'else',
}
_render_exclude: set = {}
_render_by_default: list = []
Used when rendering docs**
_doc_tags: list = []
_issue_numbers: list = [] - TODO: Implement this
_notes: list = []
_docs_order: int = 10 - Arbitrary high number so hooks can be sorted high or low
_return_description: str = None
_wip: bool = False
from tackle import BaseHook, HookConfig from pydantic import ConfigDict class SomeHook(BaseHook): hook_name = 'foo' bar: str model_config = ConfigDict( extra='forbid', ) hook_config: HookConfig = HookConfig( args=['bar'], )
foo<-: bar: str Config:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reserved Fields
Change the syntax of reserved fields to reduce potential conflicts
Proposal Status: wip
Issue Number: 243
Proposal Doc: reserved-fields.md
Overview
Variable Rules
Reserved variables
Prefix underscore -> private
Suffix with underscore
Variables
Reserved
is_public: bool = False
args: list = []
kwargs: Union[str, dict] = None
kwargs: str = None
New
args_seperator_: str = None
V2 - 1
is_public_: bool = False
args_: list = []
kwargs_: str = None
V2 - 1
_is_public: bool = False
args: list = []
_kwargs: str = None
env_: Any = None
Used in blocks / match hooks where new context is created. Needs to be public
because it will be mutable within a hook (see match).
skip_output: bool = False
_render_exclude_default: set = {
}
_render_exclude: set = {}
_render_by_default: list = []
Private
Used when rendering docs**
_doc_tags: list = []
_issue_numbers: list = [] - TODO: Implement this
_notes: list = []
_docs_order: int = 10 - Arbitrary high number so hooks can be sorted high or low
_return_description: str = None
_wip: bool = False
The text was updated successfully, but these errors were encountered: