コード例 #1
0
 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), )
コード例 #2
0
 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), )
コード例 #3
0
 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),
             )