Skip to content

Enable auto-return-type involving Optional and Union annotations#8885

Merged
charliermarsh merged 1 commit intomainfrom
charlie/union
Nov 29, 2023
Merged

Enable auto-return-type involving Optional and Union annotations#8885
charliermarsh merged 1 commit intomainfrom
charlie/union

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

Previously, this was only supported for Python 3.10 and later, since we always use the PEP 604-style unions.

@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Nov 29, 2023
@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Copy link
Copy Markdown
Member

@dhruvmanila dhruvmanila left a comment

Choose a reason for hiding this comment

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

This is pretty cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants