Skip to content

Conversation

@brycepg
Copy link
Contributor

@brycepg brycepg commented Mar 5, 2018

This is a holdover until astroid can be fixed. Astroid needs to
understand descriptors or at least raise Uninferable instead
of allowing the descriptor instance through

Close #1699

@coveralls
Copy link

coveralls commented Mar 5, 2018

Coverage Status

Coverage remained the same at 89.081% when pulling b2cf480 on brycepg:gb into 9dd978a on PyCQA:master.

@brycepg brycepg force-pushed the gb branch 2 times, most recently from b166c5e to f247f7f Compare March 5, 2018 04:03
with self.assertNoMessages():
self.checker.visit_subscript(subscript)

def test_staticmethod_multiprocessing_call(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also add a test with a user-defined descriptor?

Copy link
Contributor Author

@brycepg brycepg Mar 6, 2018

Choose a reason for hiding this comment

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

I actually cannot repro elsewhere. descriptors become Uninferable anywhere else due to (https://github.com/PyCQA/astroid/blob/master/astroid/scoped_nodes.py#L2333). Somehow the multiprocessing staticmethod descriptor is getting through with all the magic going on (use of globals, inheritance, all, etc in multiprocessing)

This is a holdover until astroid can be fixed. Astroid needs to understand descriptors or at least raise Uninferable instead of allowing the descriptor instance through Close pylint-dev#1699
@PCManticore
Copy link
Contributor

Thanks Bryce!

@PCManticore PCManticore merged commit 12e4808 into pylint-dev:master Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants