Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feature: Expressions modernization #224

Description

@pawamoy

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 fastapi/fastapi#10392 (comment)

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions