Skip to content

Commit

Permalink
squash: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
LKajan authored and ismogis committed Apr 19, 2024
1 parent 3d0b7e2 commit d02df59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake8_qgis/flake8_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _test_pyqt_module(module: Optional[str]) -> Optional[str]:
return None


def _test_module_at_from_import(
def _test_module_at_import_from(
error_code: str,
node: ast.ImportFrom,
tester: Callable[[Optional[str]], Optional[str]],
Expand Down Expand Up @@ -139,8 +139,8 @@ def __init__(self) -> None:
self.errors: List["FlakeError"] = []

def visit_ImportFrom(self, node: ast.ImportFrom) -> None: # noqa: N802
self.errors += _test_module_at_from_import("QGS101", node, _test_qgis_module)
self.errors += _test_module_at_from_import("QGS103", node, _test_pyqt_module)
self.errors += _test_module_at_import_from("QGS101", node, _test_qgis_module)
self.errors += _test_module_at_import_from("QGS103", node, _test_pyqt_module)
self.generic_visit(node)

def visit_Import(self, node: Import) -> None: # noqa: N802
Expand Down

0 comments on commit d02df59

Please sign in to comment.