rope.base.pyobjectsdef ====================== .. py:module:: rope.base.pyobjectsdef Classes ------- .. autoapisummary:: rope.base.pyobjectsdef.PyFunction rope.base.pyobjectsdef.PyComprehension rope.base.pyobjectsdef.PyClass rope.base.pyobjectsdef.PyModule rope.base.pyobjectsdef.PyPackage rope.base.pyobjectsdef.StarImport Module Contents --------------- .. py:class:: PyFunction(pycore, ast_node, parent) Bases: :py:obj:`rope.base.pyobjects.PyFunction` Python defined names that rope can access their sources .. py:attribute:: arguments .. py:attribute:: parameter_pyobjects .. py:attribute:: returned .. py:attribute:: parameter_pynames :value: None .. py:method:: get_parameters() .. py:method:: get_parameter(index) .. py:method:: get_returned_object(args) .. py:method:: get_name() .. py:method:: get_param_names(special_args=True) .. py:method:: get_kind() Get function type It returns one of 'function', 'method', 'staticmethod' or 'classmethod' strs. .. py:property:: decorators .. py:attribute:: pycore .. py:attribute:: ast_node .. py:attribute:: scope :value: None .. py:attribute:: parent .. py:attribute:: structural_attributes :value: None .. py:attribute:: concluded_attributes .. py:attribute:: attributes .. py:attribute:: defineds :value: None .. py:property:: absolute_name .. py:attribute:: visitor_class :value: None .. py:method:: get_attributes() .. py:method:: get_attribute(name) .. py:method:: get_scope() .. py:method:: get_module() .. py:method:: get_doc() -> Optional[str] .. py:method:: get_ast() .. py:attribute:: type .. py:method:: get_type() .. py:class:: PyComprehension(pycore, ast_node, parent) Bases: :py:obj:`rope.base.pyobjects.PyComprehension` Python defined names that rope can access their sources .. py:attribute:: visitor_class .. py:method:: get_kind() .. py:method:: get_name() .. py:attribute:: pycore .. py:attribute:: ast_node .. py:attribute:: scope :value: None .. py:attribute:: parent .. py:attribute:: structural_attributes :value: None .. py:attribute:: concluded_attributes .. py:attribute:: attributes .. py:attribute:: defineds :value: None .. py:property:: absolute_name .. py:method:: get_attributes() .. py:method:: get_attribute(name) .. py:method:: get_scope() .. py:method:: get_module() .. py:method:: get_doc() -> Optional[str] .. py:method:: get_ast() .. py:attribute:: type .. py:method:: get_type() .. py:class:: PyClass(pycore, ast_node, parent) Bases: :py:obj:`rope.base.pyobjects.PyClass` Python defined names that rope can access their sources .. py:attribute:: visitor_class .. py:attribute:: parent .. py:method:: get_superclasses() .. py:method:: get_name() .. py:attribute:: pycore .. py:attribute:: ast_node .. py:attribute:: scope :value: None .. py:attribute:: structural_attributes :value: None .. py:attribute:: concluded_attributes .. py:attribute:: attributes .. py:attribute:: defineds :value: None .. py:property:: absolute_name .. py:method:: get_attributes() .. py:method:: get_attribute(name) .. py:method:: get_scope() .. py:method:: get_module() .. py:method:: get_doc() -> Optional[str] .. py:method:: get_ast() .. py:attribute:: type .. py:method:: get_type() .. py:class:: PyModule(pycore, source=None, resource=None, force_errors=False) Bases: :py:obj:`rope.base.pyobjects.PyModule` Python defined names that rope can access their sources .. py:attribute:: has_errors :value: False .. py:attribute:: source_code :value: None .. py:attribute:: star_imports :value: [] .. py:attribute:: visitor_class .. py:attribute:: coding :value: None .. py:property:: lines A `SourceLinesAdapter` .. py:property:: logical_lines A `LogicalLinesFinder` .. py:method:: get_name() .. py:attribute:: resource .. py:attribute:: concluded_data :value: [] .. py:property:: absolute_name :type: str .. py:method:: get_resource() .. py:attribute:: pycore .. py:attribute:: ast_node .. py:attribute:: scope :value: None .. py:attribute:: parent .. py:attribute:: structural_attributes :value: None .. py:attribute:: concluded_attributes .. py:attribute:: attributes .. py:attribute:: defineds :value: None .. py:method:: get_attributes() .. py:method:: get_attribute(name) .. py:method:: get_scope() .. py:method:: get_module() .. py:method:: get_doc() -> Optional[str] .. py:method:: get_ast() .. py:attribute:: type .. py:method:: get_type() .. py:class:: PyPackage(pycore, resource=None, force_errors=False) Bases: :py:obj:`rope.base.pyobjects.PyPackage` Python defined names that rope can access their sources .. py:attribute:: resource :value: None .. py:method:: get_module() .. py:method:: get_name() .. py:attribute:: concluded_data :value: [] .. py:property:: absolute_name :type: str .. py:method:: get_resource() .. py:attribute:: pycore .. py:attribute:: ast_node .. py:attribute:: scope :value: None .. py:attribute:: parent .. py:attribute:: structural_attributes :value: None .. py:attribute:: concluded_attributes .. py:attribute:: attributes .. py:attribute:: defineds :value: None .. py:attribute:: visitor_class :value: None .. py:method:: get_attributes() .. py:method:: get_attribute(name) .. py:method:: get_scope() .. py:method:: get_doc() -> Optional[str] .. py:method:: get_ast() .. py:attribute:: type .. py:method:: get_type() .. py:class:: StarImport(imported_module) .. py:attribute:: imported_module .. py:method:: get_names()