-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve argument type strings for compound types and macro args #34
Comments
This is probably something we want to address in Stardoc. |
Instead of |
PEP 484 looks like the best choice, indeed. |
at a higher level - I would love if starlark itself adopted mypy-like typechecking. I've often struggled with getting the shape of providers right, and felt that static typing would better attribute the mistakes to where they are made in code when the types start getting complicated. |
@dgoldstein0 See bazelbuild/starlark#106. But I don't see types remotely near the top of our priorities for the next 12 months. |
Currently, with the exception of optional arguments and those named
name
ordeps
and perhaps a few more, all the types for Skylark macro arguments areUnknown
.I propose that skydoc support specifying argument types for macros using a {CurlyBrace} syntax. Here's an example:
Presumably, you'd have a handful of supported types as indicated by:
https://bazel.build/versions/master/docs/skylark/lib/skylark-builtin.html
The text was updated successfully, but these errors were encountered: