question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pylint no-member error

See original GitHub issue

Every function on responses ends up with a pylint error. Can the import be done differently in responses to avoid this? Is this a problem with pylint? I know that numpy had similar issues with pylint but those were eventually solved (not sure how).

What follows is a code snippet, then the pylint error after it. I’m using the latest pylint, 1.4.4, and latest responses 0.4.0.

@responses.activate
    def test_form_submit(self):

(E1101-no-member) Module 'responses' has no 'activate' member-SubmitFormTest.test_form_submit

responses.add(
            responses.POST,
            url=re.compile(r'https://forms.hubspot.com/uploads/form/v2/'),
            body='',
            status=204,
            content_type='application/json',
        )


(E1101-no-member) Module 'responses' has no 'add' member-SubmitFormTest.test_form_submit
(E1101-no-member) Module 'responses' has no 'POST' member-SubmitFormTest.test_form_submit

content_type = responses.calls[0].request.headers.get('content-type')

(E1101-no-member) Module 'responses' has no 'calls' member-SubmitFormTest.test_form_submit

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:9
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

20reactions
mikekreuzercommented, Nov 19, 2015

[TYPECHECK] ignored-classes= responses

in .pylintrc is the workaround I’m using

2reactions
purplehat7commented, Nov 30, 2018

Should a bug report be filed with the pylint project?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide some maybe-no-member Pylint errors - Stack Overflow
For some reason, pylint doesn't get 'result' may be of the array type (and will be for sure under the 'if' branch). There...
Read more >
What causes Pylint no-member false positives and how to ...
In this case Pylint will give you an error that y is not a member of A . Automating the finding of such...
Read more >
E1101 no-member — PyCodeQual documentation
Used when a variable is accessed for an unexistent member. Pylint infers (guesses) the types of expressions in the analyzed code and checks...
Read more >
Python: pylint(no-member) error on Resource.id #3765 - GitHub
This is a false positive because id isn't set in the initializer method, it's set later in register_resource and Pylint isn't able to...
Read more >
Class 'Question' has no 'objects' member pylint(no-member)
Hello, I am following the Django official tutorial and getting stuck by the following error: Class 'Question' has no 'objects' member ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found