rope.refactor.wildcards ======================= .. py:module:: rope.refactor.wildcards Classes ------- .. autoapisummary:: rope.refactor.wildcards.Wildcard rope.refactor.wildcards.Suspect rope.refactor.wildcards.DefaultWildcard Functions --------- .. autoapisummary:: rope.refactor.wildcards.parse_arg Module Contents --------------- .. py:class:: Wildcard .. py:method:: get_name() Return the name of this wildcard .. py:method:: matches(suspect, arg) Return `True` if `suspect` matches this wildcard .. py:class:: Suspect(pymodule, node, name) .. py:attribute:: name .. py:attribute:: pymodule .. py:attribute:: node .. py:class:: DefaultWildcard(project) The default restructuring wildcard The argument passed to this wildcard is in the ``key1=value1,key2=value2,...`` format. Possible keys are: * name - for checking the reference * type - for checking the type * object - for checking the object * instance - for checking types but similar to builtin isinstance * exact - matching only occurrences with the same name as the wildcard * unsure - matching unsure occurrences .. py:attribute:: project .. py:method:: get_name() .. py:method:: matches(suspect, arg='') .. py:function:: parse_arg(arg)