pylint no-member error
See original GitHub issueEvery 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:
- Created 8 years ago
- Reactions:9
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
[TYPECHECK] ignored-classes= responses
in .pylintrc is the workaround I’m using
Should a bug report be filed with the pylint project?