-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
PEP-563 decrees that
With this in mind, uses for annotations incompatible with the aforementioned PEPs should be considered deprecated.
In other words non-typing usage of annotations is deprecated and this project has to adapt. The parameter annotations Query, Path, Body, and Header have to be replaced with some other mechanism. Possible solutions:
- Arguments with a corresponding placeholder in the given path are path formatting parameters by default
- Arguments of
@getdecorated methods are considered query parameters by default - Arguments of
@post,@put, and@patchdecorated methods form the body of the request by default – how exactly remains an open question.- Perhaps for POST, PUT and PATCH the first positional argument could be considered the body.
- If content type is
application/x-www-form-urlencoded, then arguments form the body.
Headerhas to be replaced with a decorator solution of some kind.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels