diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-02 09:16:48 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-02 09:27:52 +0200 |
commit | ae524f3beb726c5c7ae506f8741277c31f8a923a (patch) | |
tree | da05bd1bff80cc0eabffbf1a6c183b9625f0d59a /pylint/utils/utils.py | |
parent | b7a9499767b4af622357a09729ea06f996dbf0dd (diff) | |
download | pylint-git-ae524f3beb726c5c7ae506f8741277c31f8a923a.tar.gz |
Use the ``argparse`` config handler in ``imports.py``
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r-- | pylint/utils/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 1bb0c9130..90a082daf 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -11,6 +11,7 @@ except ImportError: # isort < 5 HAS_ISORT_5 = False +import argparse import codecs import os import re @@ -382,7 +383,7 @@ def _ini_format(stream: TextIO, options: List[Tuple]) -> None: class IsortDriver: """A wrapper around isort API that changed between versions 4 and 5.""" - def __init__(self, config) -> None: + def __init__(self, config: argparse.Namespace) -> None: if HAS_ISORT_5: self.isort5_config = isort.api.Config( # There is no typo here. EXTRA_standard_library is |