Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(56)  |  Call(18)  |  Derive(15)  |  Import(23)
a special node representing a class instance

src/p/y/pylama_pylint-0.1.6/pylama_pylint/astroid/protocols.py   pylama_pylint(Download)
from astroid.exceptions import InferenceError, NoDefault
from astroid.node_classes import unpack_infer
from astroid.bases import copy_context, \
     raise_if_nothing_infered, yes_if_nothing_infered, Instance, YES
from astroid.nodes import const_factory
        functype = self.parent.type
        if functype == 'method':
            yield Instance(self.parent.parent.frame())
            return
        if functype == 'classmethod':
def excepthandler_assigned_stmts(self, node, context=None, asspath=None):
    for assigned in unpack_infer(self.type):
        if isinstance(assigned, nodes.Class):
            assigned = Instance(assigned)
        yield assigned

src/p/y/pylama_pylint-0.1.6/pylama_pylint/astroid/scoped_nodes.py   pylama_pylint(Download)
     Dict, From, List, Pass, Raise, Return, Tuple, Yield, \
     LookupMixIn, const_factory as cf, unpack_infer
from astroid.bases import NodeNG, InferenceContext, Instance,\
     YES, Generator, UnboundMethod, BoundMethod, _infer_stmts, copy_context, \
     BUILTINS
    def infer_call_result(self, caller, context=None):
        """infer what a class is returning when called"""
        yield Instance(self)
 
    def scope_lookup(self, node, name, offset=0):
    def instanciate_class(self):
        """return Instance of Class node, else return self"""
        return Instance(self)
 
    def getattr(self, name, context=None):

src/p/y/pylama_pylint-0.1.6/astroid/protocols.py   pylama_pylint(Download)
from astroid.exceptions import InferenceError, NoDefault
from astroid.node_classes import unpack_infer
from astroid.bases import copy_context, \
     raise_if_nothing_infered, yes_if_nothing_infered, Instance, YES
from astroid.nodes import const_factory
        functype = self.parent.type
        if functype == 'method':
            yield Instance(self.parent.parent.frame())
            return
        if functype == 'classmethod':
def excepthandler_assigned_stmts(self, node, context=None, asspath=None):
    for assigned in unpack_infer(self.type):
        if isinstance(assigned, nodes.Class):
            assigned = Instance(assigned)
        yield assigned

src/p/y/pylama_pylint-0.1.6/astroid/scoped_nodes.py   pylama_pylint(Download)
     Dict, From, List, Pass, Raise, Return, Tuple, Yield, \
     LookupMixIn, const_factory as cf, unpack_infer
from astroid.bases import NodeNG, InferenceContext, Instance,\
     YES, Generator, UnboundMethod, BoundMethod, _infer_stmts, copy_context, \
     BUILTINS
    def infer_call_result(self, caller, context=None):
        """infer what a class is returning when called"""
        yield Instance(self)
 
    def scope_lookup(self, node, name, offset=0):
    def instanciate_class(self):
        """return Instance of Class node, else return self"""
        return Instance(self)
 
    def getattr(self, name, context=None):

src/p/y/pylama_pylint-0.1.6/pylama_pylint/astroid/inference.py   pylama_pylint(Download)
from astroid.exceptions import (AstroidError,
    InferenceError, NoDefault, NotFoundError, UnresolvableName)
from astroid.bases import YES, Instance, InferenceContext, \
     _infer_stmts, copy_context, path_wrapper, raise_if_nothing_infered
from astroid.protocols import _arguments_infer_argname
                    if funcnode.type == 'method':
                        if not isinstance(boundnode, Instance):
                            boundnode = Instance(boundnode)
                        return iter((boundnode,))
                    if funcnode.type == 'classmethod':

src/a/s/astroid-1.1.1/protocols.py   astroid(Download)
from astroid.exceptions import InferenceError, NoDefault
from astroid.node_classes import unpack_infer
from astroid.bases import copy_context, \
     raise_if_nothing_infered, yes_if_nothing_infered, Instance, YES
from astroid.nodes import const_factory
        functype = self.parent.type
        if functype == 'method':
            yield Instance(self.parent.parent.frame())
            return
        if functype == 'classmethod':
def excepthandler_assigned_stmts(self, node, context=None, asspath=None):
    for assigned in unpack_infer(self.type):
        if isinstance(assigned, nodes.Class):
            assigned = Instance(assigned)
        yield assigned

src/a/s/astroid-1.1.1/scoped_nodes.py   astroid(Download)
     Dict, From, List, Pass, Raise, Return, Tuple, Yield, YieldFrom, \
     LookupMixIn, const_factory as cf, unpack_infer
from astroid.bases import NodeNG, InferenceContext, Instance,\
     YES, Generator, UnboundMethod, BoundMethod, _infer_stmts, copy_context, \
     BUILTINS
    def infer_call_result(self, caller, context=None):
        """infer what a class is returning when called"""
        yield Instance(self)
 
    def scope_lookup(self, node, name, offset=0):
    def instanciate_class(self):
        """return Instance of Class node, else return self"""
        return Instance(self)
 
    def getattr(self, name, context=None):

src/p/y/pylama_pylint-0.1.6/astroid/inference.py   pylama_pylint(Download)
from astroid.exceptions import (AstroidError,
    InferenceError, NoDefault, NotFoundError, UnresolvableName)
from astroid.bases import YES, Instance, InferenceContext, \
     _infer_stmts, copy_context, path_wrapper, raise_if_nothing_infered
from astroid.protocols import _arguments_infer_argname
                    if funcnode.type == 'method':
                        if not isinstance(boundnode, Instance):
                            boundnode = Instance(boundnode)
                        return iter((boundnode,))
                    if funcnode.type == 'classmethod':

src/a/s/astroid-1.1.1/inference.py   astroid(Download)
from astroid.exceptions import (AstroidError,
    InferenceError, NoDefault, NotFoundError, UnresolvableName)
from astroid.bases import YES, Instance, InferenceContext, \
     _infer_stmts, copy_context, path_wrapper, raise_if_nothing_infered
from astroid.protocols import _arguments_infer_argname
                    if funcnode.type == 'method':
                        if not isinstance(boundnode, Instance):
                            boundnode = Instance(boundnode)
                        return iter((boundnode,))
                    if funcnode.type == 'classmethod':

src/p/y/pylama_pylint-0.1.6/pylama_pylint/astroid/node_classes.py   pylama_pylint(Download)
 
from astroid.exceptions import NoDefault
from astroid.bases import (NodeNG, Statement, Instance, InferenceContext,
                                 _infer_stmts, YES, BUILTINS)
from astroid.mixins import BlockRangeMixIn, AssignTypeMixin, \
class Const(NodeNG, Instance):
    """represent a constant node like num, str, bool, None, bytes"""
 
    def __init__(self, value=None):
        self.value = value
class Dict(NodeNG, Instance):
    """class representing a Dict node"""
    _astroid_fields = ('items',)
 
    def __init__(self, items=None):
class List(NodeNG, Instance, ParentAssignTypeMixin):
    """class representing a List node"""
    _astroid_fields = ('elts',)
 
    def __init__(self, elts=None):
class Set(NodeNG, Instance, ParentAssignTypeMixin):
    """class representing a Set node"""
    _astroid_fields = ('elts',)
 
    def __init__(self, elts=None):

  1 | 2 | 3  Next