Skip to content
New issue

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

feat(RFC): Adds agg, field utility classes #3505

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fe7e77e
feat(RFC): Adds `agg`, `field` utility classes
dangotbanned Jul 26, 2024
c418066
test: add tests for `agg`, `field`
dangotbanned Jul 26, 2024
c92ede0
style(ruff): Format docstrings
dangotbanned Jul 26, 2024
662a137
fix(typing): Add missing `str` for `field.one_of`
dangotbanned Jul 26, 2024
35360b7
refactor(typing): Add `OneOfType` alias
dangotbanned Jul 26, 2024
7a4451a
feat: Support non-variadic input to `field.one_of`
dangotbanned Jul 26, 2024
951f2a1
test: Update/ add tests for `agg`, `field`
dangotbanned Jul 26, 2024
766d1bf
chore: Add `agg`, `field` to `__all__`
dangotbanned Jul 26, 2024
5929a5e
fix: Support already parsed shorthand in `FieldChannelMixin`
dangotbanned Jul 26, 2024
297f695
Merge branch 'main' into shorthand-namespace
dangotbanned Jul 29, 2024
208ac8b
wip
dangotbanned Jul 30, 2024
07dbcc2
fix: botched commit
dangotbanned Jul 31, 2024
bd4defe
Merge branch 'shorthand-namespace' of https://github.com/dangotbanned…
dangotbanned Jul 31, 2024
5da8485
Merge remote-tracking branch 'origin/main' into shorthand-namespace
dangotbanned Jul 31, 2024
83c3cfe
revert: Remove more of unfinished commit
dangotbanned Jul 31, 2024
23405ba
revert: Remove _ChannelValueNamespace
dangotbanned Aug 1, 2024
d4cf757
refactor(typing): Annotate `field_into` return types
dangotbanned Aug 1, 2024
e449796
chore: tidy up wip `field_into`
dangotbanned Aug 1, 2024
daeb895
Merge remote-tracking branch 'upstream/main' into shorthand-namespace
dangotbanned Aug 13, 2024
6570912
Merge branch 'main' into shorthand-namespace
dangotbanned Aug 16, 2024
4e02ac4
Merge remote-tracking branch 'upstream/HEAD' into shorthand-namespace
dangotbanned Aug 27, 2024
b472612
Merge branch 'main' into shorthand-namespace
dangotbanned Sep 1, 2024
f981130
Merge branch 'main' into shorthand-namespace
dangotbanned Oct 3, 2024
4c9851b
Merge remote-tracking branch 'upstream/main' into shorthand-namespace
dangotbanned Nov 4, 2024
a8e1ea1
refactor(ruff): Lint for `3.9`
dangotbanned Nov 4, 2024
f890feb
refactor: Factor out `SelectionPredicateComposition`
dangotbanned Nov 4, 2024
106d76f
refactor(typing): Update & rename aliases
dangotbanned Nov 4, 2024
0e806ce
feat: Permit `field.eq("field", None)`
dangotbanned Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions altair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@
"YOffsetDatum",
"YOffsetValue",
"YValue",
"agg",
"api",
"binding",
"binding_checkbox",
Expand All @@ -607,6 +608,7 @@
"default_data_transformer",
"display",
"expr",
"field",
"graticule",
"hconcat",
"jupyter",
Expand Down
2 changes: 2 additions & 0 deletions altair/vegalite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# ruff: noqa: F403
from .v5 import *
from .v5._api_rfc import agg as agg
from .v5._api_rfc import field as field
Loading