-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type hints: Parts of folders "vegalite", "v5", and "utils" (#2976)
* Type hint vegalite/v5/theme.py * Type hint display modules * Type hint data modules and some related files * Type hint core.py * Type hint html.py * Format code * Type hint default_data_transformer * Improve type hints on data transformers * Ignore mypy missing import error for nbformat and ipykernel. Unclear why mypy suddenly complains about those... * Use Final for constants * Mark some type aliases/protocols as private which are new and where we might not yet want users to rely on them. Gives more flexibility in the future to change them * Remove unused 'type ignore' statements. Add mypy error if it detects such a redundant statement * Replace _SupportsDataFrame with _DataFrameLike * Format code * Rename two typeddicts to make it clearer that they reference the return type of functions * Make InferredVegaLiteType private * Type hint 'data' in infer_vegalite_type as object as this is the type hint that is used by pandas for their infer_type function --------- Co-authored-by: Jon Mease <[email protected]>
- Loading branch information
Showing
14 changed files
with
310 additions
and
174 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
Oops, something went wrong.