Use TypeAlias for type aliases where possible, part II (#7667)

This commit is contained in:
Alex Waygood
2022-04-20 20:02:47 +01:00
committed by GitHub
parent c653be73b8
commit b093c90a94
41 changed files with 91 additions and 90 deletions

View File

@@ -1,11 +1,12 @@
from collections.abc import Container, Generator, Iterable, Mapping
from logging import Logger
from typing import Any, ClassVar, NoReturn
from typing_extensions import TypeAlias
from .pgen2.grammar import Grammar
_Driver = Any # really lib2to3.driver.Driver
_BottomMatcher = Any # really lib2to3.btm_matcher.BottomMatcher
_Driver: TypeAlias = Any # really lib2to3.driver.Driver
_BottomMatcher: TypeAlias = Any # really lib2to3.btm_matcher.BottomMatcher
def get_all_fix_names(fixer_pkg: str, remove_prefix: bool = ...) -> list[str]: ...
def get_fixers_from_package(pkg_name: str) -> list[str]: ...