diff options
author | Joris Roovers <joris.roovers@gmail.com> | 2023-04-05 11:30:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 11:30:59 +0200 |
commit | c785125cc6d1d4b1ce1d5e4f8ffc467df2e23502 (patch) | |
tree | 75817d43c0fb29cb29216bcb8b833ce2f988e44f | |
parent | 10f86a0f364c849189fc11bf581ab72f379bc646 (diff) |
Remove unused class variable (#481)
Remove the unused `Rule._log_deprecated_regex_style_search` class
variable.
-rw-r--r-- | gitlint-core/gitlint/rules.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitlint-core/gitlint/rules.py b/gitlint-core/gitlint/rules.py index e316b97..58b334f 100644 --- a/gitlint-core/gitlint/rules.py +++ b/gitlint-core/gitlint/rules.py @@ -2,7 +2,7 @@ import copy import logging import re from dataclasses import dataclass, field -from typing import Any, ClassVar, Dict, List, Optional +from typing import ClassVar, Dict, List, Optional from gitlint.deprecation import Deprecation from gitlint.exception import GitlintError @@ -26,7 +26,6 @@ class Rule: name: ClassVar[str] target: ClassVar[Optional["LineRuleTarget"]] = None _log: ClassVar[Optional[logging.Logger]] = None - _log_deprecated_regex_style_search: ClassVar[Any] # Instance attributes _raw_options: Dict[str, str] = field(default_factory=dict, compare=False) |