We've been pushing towards the property names for a while, and the
subclassing of the tuple confuses pytype. Rather than bend over
backwards to try and annotate the tuple subclass, let's just use attrs
here.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGc5548b0b6847: scmutil: convert status data object from a tuple to an attrs (API)
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/scmutil.py | ||
---|---|---|
81–89 | What depends on this? It looked like many of the patches earlier in the series tried to get rid of iteration. |
Comment Actions
It appears PyCharm is confused by this change, which is weird, because it's supposed to support attrs. I would have to file a bug.
mercurial/scmutil.py | ||
---|---|---|
81–89 | I started out trying to get rid of the iterator interface on this, and gave up because it's just too many callsites for me to care. I do think, long term, we should endeavor to rip this out. |
What depends on this? It looked like many of the patches earlier in the series tried to get rid of iteration.