flake8
passed.
JSHint
passed.
Review Request #14257 — Created Dec. 4, 2024 and updated
This change adds a new
@api_stub
decorator that we can use to define
stubs within resource implementations. These stubs provide type hints
and documentation for any methods which will be dynamically generated.We have only a subset of subclasses for resources. For the ones we do
currently have, this adds stubs to the root resource for the methods
that are automatically generated from URI-templates. With this, if one's
editor is so configured, a developer can write
api_root.get_review_request(
and the editor will auto-complete the
review_request_id
parameter and indicate that the resulting value is a
ReviewRequestItemResource
.
help(api_root.get_review_request)
showed the correctSummary | ID |
---|---|
ef110b6cafd99df95b5a1e76c378ab2f7debad28 |