rope.base.pynamesdef ==================== .. py:module:: rope.base.pynamesdef Classes ------- .. autoapisummary:: rope.base.pynamesdef.DefinedName rope.base.pynamesdef.AssignedName rope.base.pynamesdef.UnboundName rope.base.pynamesdef.ParameterName rope.base.pynamesdef.AssignmentValue rope.base.pynamesdef.EvaluatedName rope.base.pynamesdef.ImportedModule rope.base.pynamesdef.ImportedName Module Contents --------------- .. py:class:: DefinedName(pyobject) Bases: :py:obj:`rope.base.pynames.DefinedName` References to `PyObject` inside python programs .. py:attribute:: pyobject .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_definition_location() Return a (module, lineno) tuple .. py:class:: AssignedName(lineno=None, module=None, pyobject=None) Bases: :py:obj:`rope.base.pynames.AssignedName` References to `PyObject` inside python programs .. py:attribute:: lineno :value: None .. py:attribute:: module :value: None .. py:attribute:: assignments :value: [] .. py:attribute:: pyobject .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_definition_location() Returns a (module, lineno) tuple .. py:method:: invalidate() Forget the `PyObject` this `PyName` holds .. py:class:: UnboundName(pyobject=None) Bases: :py:obj:`rope.base.pynames.UnboundName` References to `PyObject` inside python programs .. py:attribute:: pyobject :value: None .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_definition_location() Return a (module, lineno) tuple .. py:class:: ParameterName(pyfunction, index) Bases: :py:obj:`rope.base.pynames.ParameterName` References to `PyObject` inside python programs .. py:attribute:: pyfunction .. py:attribute:: index .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_objects() Returns the list of objects passed as this parameter .. py:method:: get_definition_location() Return a (module, lineno) tuple .. py:class:: AssignmentValue(ast_node, levels=None, evaluation='', assign_type=False, type_hint=None) Bases: :py:obj:`rope.base.pynames.AssignmentValue` An assigned expression .. py:attribute:: ast_node .. py:attribute:: evaluation :value: '' .. py:attribute:: assign_type :value: False .. py:attribute:: type_hint :value: None .. py:method:: get_lineno() .. py:class:: EvaluatedName(callback, module=None, lineno=None) Bases: :py:obj:`rope.base.pynames.EvaluatedName` A name whose object will be evaluated later .. py:attribute:: module :value: None .. py:attribute:: lineno :value: None .. py:attribute:: callback .. py:attribute:: pyobject .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_definition_location() Return a (module, lineno) tuple .. py:method:: invalidate() Forget the `PyObject` this `PyName` holds .. py:class:: ImportedModule(importing_module: Union[rope.base.pyobjectsdef.PyModule, rope.base.pyobjectsdef.PyPackage], module_name=None, level=0, resource=None) Bases: :py:obj:`rope.base.pynames.ImportedModule` References to `PyObject` inside python programs .. py:attribute:: importing_module .. py:attribute:: module_name :value: None .. py:attribute:: level :value: 0 .. py:attribute:: resource :value: None .. py:attribute:: pymodule .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_definition_location() Return a (module, lineno) tuple .. py:class:: ImportedName(imported_module, imported_name) Bases: :py:obj:`rope.base.pynames.ImportedName` References to `PyObject` inside python programs .. py:attribute:: imported_module .. py:attribute:: imported_name .. py:method:: get_object() Return the `PyObject` object referenced by this `PyName` .. py:method:: get_definition_location() Return a (module, lineno) tuple