third_party.pylibs.pylint.src/pylint/typing.py

15 lines
494 B
Python
Raw Normal View History

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
"""A collection of typing utilities."""
from typing import TYPE_CHECKING, Dict, List, Union
if TYPE_CHECKING:
from typing import Counter # typing.Counter added in Python 3.6.1
# The base type of the "stats" attribute of a checker
CheckerStats = Dict[
str, Union[int, "Counter[str]", List, Dict[str, Union[int, str, Dict[str, int]]]]
]