def _check_dotted_raw_import(self, node: ast.Import) -> None: for alias in node.names: if _MODULE_MEMBERS_SEPARATOR in alias.name: self._error_callback( DottedRawImportViolation(node, text=alias.name), )
def check_dotted_raw_import(self, node: ast.Import) -> None: for alias in node.names: if '.' in alias.name: self._error_callback( DottedRawImportViolation(node, text=alias.name), )
def check_dotted_raw_import(self, node: ast.Import) -> None: for alias in node.names: if '.' in alias.name: self.delegate.add_violation( DottedRawImportViolation(node, text=alias.name), )