logilab-astng #4294 E1102 false positive (not callable) [validation pending]
Consider the following code snippet using mechanize[1]: $ cat z_z.py from mechanize import Browser browser = Browser() browser.open("http://localhost/") It leads to an apparently false positive E1102 report: $ pylint -e ./z_z.py ************* Module z_z E: 3: browser.open is not callable This is with: $ pylint --version pylint 0.13.2, astng 0.17.0, common 0.21.2 Python 2.4.4 (#1, Sep 9 2007, 22:46:13) [GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)] Syt note: probably an astng bug | |
priority | normal |
---|---|
type | bug |
done in | 0.24.1 |
load | 0.500 |
load left | 0.000 |
closed by | #31dd11229614 backport pylint-brain 27:2c83031cb6a3. Closes #4294, #46273 |
Comments
-
2008/11/19 13:36, written by sthenault
add commentactually not really: in mechanize._opener.OpenerDirector.close, self.open is assigned to None, and this takes priority over the open method when open is infered on a Browser instance...