Skip to content

Commit

Permalink
Type hint api.py (#3143)
Browse files Browse the repository at this point in the history
* First batch of type hints

* Some more

* Add type hints to some more transform_methods

* Add type hints to some more transform_methods

* Finish first pass of type hints for public objects

* Move UndefinedType always to last item of Union

* Type hint transform_filter

* Type hint Chart.__init__

* Type hint .facet

* Minor stuff

* Various mypy error fixes

* Fix remaining mypy errors

* Add more core Altair classes to type hints

* Add Parameter hints

* Minor fix

* Exclude IO from __init__.py

* Apply code suggestion

Co-authored-by: Mattijn van Hoek <[email protected]>

* Remove ignore statement which is redundant for new versions of mypy

---------

Co-authored-by: Mattijn van Hoek <[email protected]>
  • Loading branch information
binste and mattijn authored Oct 28, 2023
1 parent 721b2b2 commit 19eac93
Show file tree
Hide file tree
Showing 2 changed files with 427 additions and 260 deletions.
Loading

0 comments on commit 19eac93

Please sign in to comment.