mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user