Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add method-based attribute setting (#2795)
* Add method based syntax from #1629 to v5 * Add correct function signatures and docstrings, and initial autocompletion parameter support * Add general param info to docstrings and pass through adding the helper class docstring when not appropriate * Deal with docstring missing "Attributes" tag * Fix black formatting * Fix black formatting * Update relative imports syntax * Only generate new schema for the latest version of vega lite to avoid backported changes that we do not test on older versions * Type hints for tab completion * Fix NoneType notation * Replace Type[None] with None * Basic documentation for attribute setter methods * Apply suggestions from code review Co-authored-by: Stefan Binder <[email protected]> * define test_examples for both syntax * renaming iter_examples for methods syntax * add test examples using methods syntax * improve comments * exclude method examples dir from flake8 and black * include commit credits original prototype: #1629 Co-authored-by: Jake VanderPlas <[email protected]> Co-authored-by: Joel Ostblom <[email protected]> Co-authored-by: Stefan Binder <[email protected]> Co-authored-by: mattijn <[email protected]> Co-authored-by: Jake VanderPlas <[email protected]>
- Loading branch information