Starlark type checker should support something like `reveal_type()`
Open
P3
team-Starlark-Interpreter
type: feature request
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
Having something like mypy or pyrefly's `reveal_type()` would both aid users and massively simplify some of Bazel's type system tests.
Sub-issue of #27370
@brandjon FYI
Contributor guide
Research direction
Start by reading the Starlark type checker context and the parent issue #27370, since no implementation files or tests are identified here. Define the expected reveal_type()-like behavior and its test coverage; done means the behavior is specified and the relevant type-system tests can exercise it.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100