diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2007-02-19 09:55:31 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2007-02-19 09:55:31 +0100 |
commit | e40704c23b63e3a63a9e46a40548a75d75ed48bc (patch) | |
tree | f0ab52cd234c4ac4c9ce490b3e88a55aa9cc5fca /checkers | |
parent | 8df45f9d7e4505e4d1cc7ae5596e2bbbf202e24e (diff) | |
download | pylint-git-e40704c23b63e3a63a9e46a40548a75d75ed48bc.tar.gz |
transfert
Diffstat (limited to 'checkers')
-rw-r--r-- | checkers/typecheck.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/checkers/typecheck.py b/checkers/typecheck.py index da80b959d..748e345b6 100644 --- a/checkers/typecheck.py +++ b/checkers/typecheck.py @@ -102,9 +102,8 @@ zope\'s acquisition mecanism and so shouldn\'t trigger E0201 when accessed \ if owner is astng.YES: inference_failure = True continue - # if there is ambiguity, skip None - if len(infered) > 1 and isinstance(owner, astng.Const) \ - and owner.value is None: + # skip None anyway + if isinstance(owner, astng.Const) and owner.value is None: continue # XXX "super" / metaclass call if is_super(owner) or getattr(owner, 'type', None) == 'metaclass': @@ -118,8 +117,6 @@ zope\'s acquisition mecanism and so shouldn\'t trigger E0201 when accessed \ # XXX method / function continue except astng.NotFoundError, ex: - if isinstance(owner, astng.Const): # infered to None for instance - continue if isinstance(owner, astng.Instance) \ and owner.has_dynamic_getattr(): continue |