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

PyCQA / astroid / 1451
91%
main: 92%

Build:
Build:
LAST BUILD BRANCH: regex-brain
DEFAULT BRANCH: main
Ran 02 Jun 2019 09:04AM UTC
Jobs 5
Files 67
Run time 2min
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

pending completion
1451

push

travis-ci

web-flow
Merge pull request #664 from hippo91/bug_pylint_2721

Deep rework of the numpy brain.

The original brain has been split into numerous one. Each numpy brain module corresponds to
a numpyone. There are:

brain_numpy_core_fromnumeric => numpy.core.fromnumeric
brain_numpy_core_function_base => numpy.core.function_base
brain_numpy_core_multiarray => numpy.core.multiarray
brain_numpy_core_numeric => numpy.core.numeric
brain_core_numerictypes => numpy.core.numerictypes
brain_core_umath => numpy.core.umath
brain_numpy_random_mtrand => numpy.random.mtrand
Last but not least, the numpy.ndarray class has its corresponding astroid's brain (brain_numpy_ndarray).

The major improvement, besides a clearer organisation, is the fact that each method of the ndarray class should now be correctly inferred. Especially those returning ndarray objects.

It has been made possible by ensuring that the return type of those methods is inferred as ndarray and nothing else. To achieve this, the inference_tip function has been used.

When a numpy callable may return two different kinds of objects, for example bool or ndarray, the choice to prefer ndarray has been made in the corresponding astroid brain method.

75 of 75 new or added lines in 9 files covered. (100.0%)

7358 of 8223 relevant lines covered (89.48%)

4.42 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1451.3 (TOXENV=py34) 02 Jun 2019 09:06AM UTC 0
87.53
Travis Job 1451.3
4 1451.4 (TOXENV=py35) 02 Jun 2019 09:04AM UTC 0
88.2
Travis Job 1451.4
5 1451.5 (TOXENV=pypy) 02 Jun 2019 09:06AM UTC 0
87.73
Travis Job 1451.5
6 1451.6 (TOXENV=py36) 02 Jun 2019 09:04AM UTC 0
89.46
Travis Job 1451.6
7 1451.7 (TOXENV=py37) 02 Jun 2019 09:04AM UTC 0
89.25
Travis Job 1451.7
Source Files on build 1451
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1451
  • 33065ec0 on github
  • Prev Build on master (#1450)
  • Next Build on master (#1452)
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

© 2025 Coveralls, Inc