(self, node: ast.ImportFrom)
Finds names/aliases to replace.
Finds names/aliases to replace.
Finds names / aliases to replace .
def _get_names_to_replace(self, node: ast.ImportFrom) -> Iterable[Tuple[str, Tuple[str, str]]]:
        """Finds names/aliases to replace."""
        for alias in node.names:
            full_name = '{}.{}'.format(node.module, alias.name)
            if alias.name != '*':
                rewrite = self._get_matched_rewrite(full_name)
                if rewrite:
                    yield (full_name, rewrite)
def _get_names_to_replace ( self , node : ast . ImportFrom ) -> Iterable [ Tuple [ str , Tuple [ str , str ] ] ] : for alias in node . names : full_name = '{}.{}' . format ( node . module , alias . name ) if alias . name != '*' : rewrite = self . _get_matched_rewrite ( full_name ) if rewrite : yield ( full_name , rewrite )