summaryrefslogtreecommitdiff
path: root/pylint/config/arguments_manager.py
diff options
context:
space:
mode:
authorAndreas Finkler <3929834+DudeNr33@users.noreply.github.com>2022-04-15 12:26:54 +0200
committerGitHub <noreply@github.com>2022-04-15 12:26:54 +0200
commit64675c571f60bc5146b0e81a48126c1e088a205a (patch)
tree237a9e946abe70f77f390ae9b5438cc1ef6771ee /pylint/config/arguments_manager.py
parent868f5d573b4d282ce258be009cd25d624894fe65 (diff)
parentf120a798bbe122e87442fa9df809057777fb658a (diff)
downloadpylint-git-64675c571f60bc5146b0e81a48126c1e088a205a.tar.gz
Merge pull request #6298 from DanielNoord/argparse-pyreverse-2
Add typing and small refactors to pyreverse
Diffstat (limited to 'pylint/config/arguments_manager.py')
-rw-r--r--pylint/config/arguments_manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/config/arguments_manager.py b/pylint/config/arguments_manager.py
index ec7ec3fbc..b1712ad7f 100644
--- a/pylint/config/arguments_manager.py
+++ b/pylint/config/arguments_manager.py
@@ -16,6 +16,7 @@ import re
import sys
import textwrap
import warnings
+from collections.abc import Sequence
from pathlib import Path
from typing import TYPE_CHECKING, Any, TextIO, Union
@@ -224,7 +225,7 @@ class _ArgumentsManager:
self.config = self._arg_parser.parse_known_args(arguments, self.config)[0]
def _parse_command_line_configuration(
- self, arguments: list[str] | None = None
+ self, arguments: Sequence[str] | None = None
) -> list[str]:
"""Parse the arguments found on the command line into the namespace."""
arguments = sys.argv[1:] if arguments is None else arguments