diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-06 08:16:48 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2021-02-07 10:28:18 +0100 |
commit | f66d03b278557e5f1a2898ea65de607b97e2d1ee (patch) | |
tree | d9e39d1ddbb8b477450ff03a2e22eac88265976d /pylint | |
parent | 68d92193a3bf5eb66908c20fddb645450dbaffa2 (diff) | |
download | pylint-git-f66d03b278557e5f1a2898ea65de607b97e2d1ee.tar.gz |
Fix base class "CheckerTestCase" defined the type as "None"
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/testutils/checker_test_case.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/testutils/checker_test_case.py b/pylint/testutils/checker_test_case.py index 303dc42e7..1d029687f 100644 --- a/pylint/testutils/checker_test_case.py +++ b/pylint/testutils/checker_test_case.py @@ -2,7 +2,7 @@ # For details: https://github.com/PyCQA/pylint/blob/master/COPYING import contextlib -from typing import Dict +from typing import Dict, Optional, Type from pylint.testutils.global_test_linter import linter from pylint.testutils.unittest_linter import UnittestLinter @@ -12,7 +12,7 @@ from pylint.utils import ASTWalker class CheckerTestCase: """A base testcase class for unit testing individual checker classes.""" - CHECKER_CLASS = None + CHECKER_CLASS: Optional[Type] = None CONFIG: Dict = {} def setup_method(self): |