Skip to main contentAbstract base class for all parameter widget classes. In user code, Parameter is typically seen as the common return type for parameter widgets you access in context.py and other helpers.
Concrete parameter widgets are created by Squirrels based on your parameter configuration and returned from Squirrels APIs; you should not instantiate Parameter directly. Use one of the concrete implementations:
When defining parameters or working with them at runtime, use the concrete classes from the parameters module rather than Parameter itself.
If Parameter is needed for type annotation, it can be imported from the squirrels.types or squirrels module.