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

docs: Fix and improve alt.Optional doc #3449

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Conversation

dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Jun 28, 2024

Fixes an issue identified in #3431 (comment) and addresses typing.Optional

This is a follow-up PR to #3431, following @binste comment

image

Copy link
Contributor

@binste binste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@binste binste merged commit 79783ef into vega:main Jun 28, 2024
11 checks passed
@dangotbanned dangotbanned deleted the fix-optional-doc branch June 28, 2024 12:57
dangotbanned added a commit to dangotbanned/altair that referenced this pull request Jul 3, 2024
The user will see this message ```
altair\utils\data.py:17:5: TID251 `typing.Optional` is banned: Use `Union[T, None]` instead. `typing.Optional` is likely to be confused with `altair.Optional`, which have similar but different semantic meaning. See vega#3449 Found 1 error.
```

Partial fix for vega#3452 (comment)
binste pushed a commit that referenced this pull request Jul 3, 2024
* feat(typing): Ban `typing.Optional` import using `ruff`

The user will see this message ```
altair\utils\data.py:17:5: TID251 `typing.Optional` is banned: Use `Union[T, None]` instead. `typing.Optional` is likely to be confused with `altair.Optional`, which have similar but different semantic meaning. See #3449 Found 1 error.
```

Partial fix for #3452 (comment)

* fix: typo in message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants