Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 10, 2024
1 parent b7740a2 commit a43c301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pylint/config/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ class UnrecognizedArgumentAction(Exception):
action is not recognized.
"""


class _UnrecognizedOptionError(Exception):
"""Raised if an ArgumentManager instance tries to parse an option that is
unknown.
"""

def __init__(self, options: list[str], *args: object) -> None:
self.options = options
super().__init__(*args)


class ArgumentPreprocessingError(Exception):
"""Raised if an error occurs during argument pre-processing."""

def __init__(self, message: str) -> None:
self.message = message
super().__init__(message)
super().__init__(message)
2 changes: 1 addition & 1 deletion pylint/extensions/redefined_variable_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def leave_classdef(self, _: nodes.ClassDef) -> None:
leave_functiondef = leave_asyncfunctiondef = leave_module = leave_classdef

def visit_module(self, _: nodes.Module) -> None:
self._assigns: "list[dict[str, list[tuple[nodes.Assign, str]]]]" = [{}]
self._assigns: list[dict[str, list[tuple[nodes.Assign, str]]]] = [{}]

def _check_and_add_messages(self) -> None:
assigns = self._assigns.pop()
Expand Down

0 comments on commit a43c301

Please sign in to comment.