diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-05-28 22:16:14 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-05-28 22:51:51 +0200 |
commit | 41f5ecee543da4795b959006c2bfdacc84a6c9bc (patch) | |
tree | e011239d7db038c95c569837a4f9dad8f5110bd1 /tests/primer | |
parent | dd11d9af5730440a484feb6702d3d026d5130a92 (diff) | |
download | pylint-git-41f5ecee543da4795b959006c2bfdacc84a6c9bc.tar.gz |
Small refactors to primer
Diffstat (limited to 'tests/primer')
-rw-r--r-- | tests/primer/primer_tool.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/primer/primer_tool.py b/tests/primer/primer_tool.py index 157db1496..8b4dc3948 100644 --- a/tests/primer/primer_tool.py +++ b/tests/primer/primer_tool.py @@ -8,6 +8,7 @@ import argparse import json from io import StringIO from pathlib import Path +from typing import Dict, List, Union import git @@ -19,6 +20,8 @@ TESTS_DIR = Path(__file__).parent.parent PRIMER_DIRECTORY = TESTS_DIR / ".pylint_primer_tests/" PACKAGES_TO_PRIME_PATH = Path(__file__).parent / "packages_to_prime.json" +PackageMessages = Dict[str, List[Dict[str, Union[str, int]]]] + class Primer: """Main class to handle priming of packages.""" @@ -100,7 +103,7 @@ class Primer: f.write(commit_string) def _handle_run_command(self) -> None: - packages: dict[str, list[dict[str, str | int]]] = {} + packages: PackageMessages = {} for package, data in self.packages.items(): output = self._lint_package(data) |