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

feature: Expressions modernization #224

Closed
pawamoy opened this issue Nov 9, 2023 · 1 comment
Closed

feature: Expressions modernization #224

pawamoy opened this issue Nov 9, 2023 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@pawamoy
Copy link
Member

pawamoy commented Nov 9, 2023

Is your feature request related to a problem? Please describe.

Code that is stuck with Python 3.8 and cannot use future annotations and has to use List, Optional, Union, etc.

Describe the solution you'd like

It would be nice if it was possible to "modernize" Griffe expressions on-the-fly, transforming Optional[...] into ... | None, Union[A, B] into A | B, etc.

Describe alternatives you've considered

/

Additional context

Originally asked by @tiangolo in tiangolo/fastapi#10392 (comment)

@pawamoy pawamoy added the feature New feature or request label Nov 9, 2023
@pawamoy pawamoy self-assigned this Nov 9, 2023
@pawamoy
Copy link
Member Author

pawamoy commented Mar 11, 2024

Implemented in Insiders v1.2.0 🙂

@pawamoy pawamoy closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant