Improve rbext create boilerplate, add type hints.
Review Request #14543 — Created July 31, 2025 and submitted
The boilerplate created by
rbext create
was a little bit crufty,
having a mix of fake code and real. This change cleans that up so that
it's true boilerplate only, and all the fake stuff is in comments.This change also modernizes the implementation of
rbext
with type
hints and some modern syntax nicety.
Generated extensions with
rbext create
.
Summary | ID |
---|---|
f16b7b90afcc4f767f3a6c2e624c1b1b5ed59ce7 |
Description | From | Last Updated |
---|---|---|
This differs from the previous implementation. The primary document header is missing the leading row of ====s. |
|
|
We can get rid of the u prefix handling now, just return a repr(). |
|
|
While here can you add the "Returns" section in the docs for this. |
![]() |
|
We should mention .ts files here too. |
![]() |
- Commits:
-
Summary ID af0a2b1713ad9b12ba9a4b34773034948c5e91bb f3cea3095b1023d7bd23988d5eb589593441a292 - Diff:
-
Revision 2 (+524 -430)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
- Commits:
-
Summary ID f3cea3095b1023d7bd23988d5eb589593441a292 f16b7b90afcc4f767f3a6c2e624c1b1b5ed59ce7 - Diff:
-
Revision 3 (+536 -434)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.