Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes the way flat attribute of numpy array is inferred #830

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

hippo91
Copy link
Contributor

@hippo91 hippo91 commented Aug 5, 2020

Steps

  • For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • Write a good description on what the PR does.

Description

This PR solves the pylint bug pylint-dev/pylint#3640.
It was due to the fact that in the brain_numpy_ndarray the flat attribute was None.
Rigorously it should be a numpy.flatiter instance, but as for now this class doesn't exist in the brain, i choose to replace it by just a numpy.ndarray. This way, iteration and indexation on the return value of the flat attribute is allowed.

Type of Changes

Type
🐛 Bug fix

Related Issue

Closes pylint-dev/pylint#3640

@hippo91 hippo91 changed the title Add comments and changelog entry Changes the way flat attribute of numpy array is inferred Aug 5, 2020
Copy link
Contributor

@PCManticore PCManticore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix.

@PCManticore PCManticore merged commit 8b19be2 into pylint-dev:master Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect error reported for numpy
2 participants