You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E1101: Instance of 'Browser' has no 'select_form' member (no-member)
E1137: 'br' does not support item assignment (unsupported-assignment-operation)
E1101: Instance of 'Browser' has no 'submit' member (no-member)
The brain transform for mechanize was missing most methods for the
Browser class, leading to false positives in pylint, such as:
E1101: Instance of 'Browser' has no 'select_form' member (no-member)
E1137: 'browser' does not support item assignment
(unsupported-assignment-operation)
Add missing methods to align with mechanize 0.4.5.
Fixespylint-dev#793.
The brain transform for mechanize was missing most methods for the
Browser class, leading to false positives in pylint, such as:
E1101: Instance of 'Browser' has no 'select_form' member (no-member)
E1137: 'browser' does not support item assignment
(unsupported-assignment-operation)
Add missing methods to align with mechanize 0.4.5.
Fixes#793.
Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
The
mechanize.Browser
provided byastroid.brain.brain_mechanize.mechanize_transform
is incomplete, causing false positives E1101 / E1137 inpylint
.note: the transform itself is needed still, otherwise there are E1102 / not-callable false-positives.
Steps to reproduce
Run pylint on the following script:
Current behavior
False positives:
Expected behavior
No false positives
python3 -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.5.0 (and reproduced with commit 3f7cea4)
The text was updated successfully, but these errors were encountered: