Caught by pytype.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG3e57809d3251: templateutil: fix a missing ABCMeta assignment
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/templateutil.py | ||
---|---|---|
114 | This is ignored on Python 3 (meaning it's possible to instantiate mappable directly, despite some methods being abstract). It should be class mappable(metaclass=abc.ABCMeta) on Python 3. |
This is ignored on Python 3 (meaning it's possible to instantiate mappable directly, despite some methods being abstract). It should be class mappable(metaclass=abc.ABCMeta) on Python 3.
But I realize that there are other __metaclass__ = abc.ABCMeta in the code base. Do we handle this somehow or has this been overlooked?