• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PyCQA / astroid / 2053 / 7
91%
main: 92%

Build:
Build:
LAST BUILD BRANCH: regex-brain
DEFAULT BRANCH: main
Ran 06 Apr 2021 10:11AM UTC
Files 75
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Apr 2021 10:06AM UTC coverage: 90.2% (-0.05%) from 90.246%
TOXENV=py39,py39-six

push

travis-ci

web-flow
Bug pylint 4206 (#921)

* Takes into account the fact that inferring subscript when the node is a class may use the __class_getitem__ method of the current class instead of looking for __getitem__ in the metaclass.

* OrderedDict in the collections module inherit from dict which is C coded and thus have no metaclass but starting from python3.9 it supports subscripting thanks to the __class_getitem__ method.

* check_metaclass becomes a static class method because we need it in the class scope.
The brain_typing module does not add a ABCMeta_typing class thus there is no need to test it. Moreover it doesn't add neither a __getitem__ to the metaclass

* The brain_typing module does not add anymore _typing suffixed classes in the mro

* The OrderedDict class inherits from C coded dict class and thus doesn't have a metaclass.

* When trying to inherit from typing.Pattern the REPL says :  TypeError: type 're.Pattern' is not an acceptable base type

* The REPL says that Derived as ABCMeta for metaclass and the mro is Derived => Iterator => Iterable => object

* Adds comments

* Starting with Python39 some collections of the collections.abc module support subscripting thanks to __class_getitem__ method. However the wat it is implemented is not straigthforward and instead of complexifying the way __class_getitem__ is handled inside the getitem method of the ClassDef class, we prefer to hack a bit.

* Thanks to __class_getitem__ method there is no need to hack the metaclass

* SImplifies the inference system for typing objects before python3.9. Before python3.9 the objects of the typing module that are alias of the same objects in the collections.abc module have subscripting possibility thanks to the _GenericAlias metaclass. To mock the subscripting capability we add __class_getitem__ method on those objects.

* check_metaclass_is_abc become global to be shared among different classes

* Create a test class dedicated to the Collections ... (continued)

7879 of 8735 relevant lines covered (90.2%)

0.9 hits per line

Source Files on job 2053.7 (TOXENV=py39,py39-six)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1598
  • Travis Job 2053.7
  • 8e287202 on github
  • Prev Job for TOXENV=py39,py39-six on master (#2036.7)
  • Next Job for TOXENV=py39,py39-six on master (#2062.7)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc