Skip to content

Use union syntax instead of typing.Optional#3643

Merged
svartkanin merged 1 commit intoarchlinux:masterfrom
correctmost:cm/use-union-syntax
Jun 30, 2025
Merged

Use union syntax instead of typing.Optional#3643
svartkanin merged 1 commit intoarchlinux:masterfrom
correctmost:cm/use-union-syntax

Conversation

@correctmost
Copy link
Copy Markdown
Contributor

PR Description:

This makes it easier to use the deprecateTypingAliases check with Pyright. (Optional is not officially deprecated, but Pyright still flags it as such: microsoft/pyright#9793)

@correctmost correctmost requested a review from Torxed as a code owner June 30, 2025 17:43
@svartkanin svartkanin merged commit 2072c29 into archlinux:master Jun 30, 2025
9 checks passed
@correctmost correctmost deleted the cm/use-union-syntax branch June 30, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants