I think we could constrain the values here more than Any, but this
lets us move forward with typechecking commands.py.
Details
Details
- Reviewers
dlax indygreg - Group Reviewers
hg-reviewers - Commits
- rHGa58d2361b231: cmdutil: add a pytype annotation to help out some callsites
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/cmdutil.py | ||
---|---|---|
3971 | I'm pretty sure that some of the dict values are booleans at the very least? |
Wouldn't -> Dict[bytes, List[bytes]] be okay? (Not sure why "Any" you're referering to in commit message, though I understand Dict[bytes, Any] comes from state.cmdstate.read() return type in D7383.)