Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG1a47fe4bc154: branchmap: pytype is confused about bytestr
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
Could you please look into this in more detail? Presumably the type checker isn't seeing that pycompat.bytestr will accept anything that can be cast to str, which Exception can. So this feels like it is either a bug in pytype or a missing annotation somewhere. I'd like to know which.
But the comment draws attention to oddness. (I'm assuming we'll be able to disable most type annotator disables long term once more of the code base is properly type annotated.) So I'm fine landing this.