__init__.py 654 B

123456789101112131415161718
  1. # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  2. # For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
  3. # Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
  4. from __future__ import annotations
  5. from typing import TYPE_CHECKING
  6. from pylint.checkers.classes.class_checker import ClassChecker
  7. from pylint.checkers.classes.special_methods_checker import SpecialMethodsChecker
  8. if TYPE_CHECKING:
  9. from pylint.lint import PyLinter
  10. def register(linter: PyLinter) -> None:
  11. linter.register_checker(ClassChecker(linter))
  12. linter.register_checker(SpecialMethodsChecker(linter))