Skip to content

Comments

docs: Fix and improve alt.Optional doc#3449

Merged
binste merged 3 commits intovega:mainfrom
dangotbanned:fix-optional-doc
Jun 28, 2024
Merged

docs: Fix and improve alt.Optional doc#3449
binste merged 3 commits intovega:mainfrom
dangotbanned:fix-optional-doc

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
@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