mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-13 03:21:07 +08:00
Import names from typing directly rather than importing module (#13761)
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import logging
|
||||
import typing as t
|
||||
from collections.abc import Callable
|
||||
from typing import Any, TypeVar
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
import click
|
||||
|
||||
_AnyCallable: TypeAlias = t.Callable[..., t.Any]
|
||||
_FC = t.TypeVar("_FC", bound=_AnyCallable | click.Command)
|
||||
_AnyCallable: TypeAlias = Callable[..., Any]
|
||||
_FC = TypeVar("_FC", bound=_AnyCallable | click.Command)
|
||||
|
||||
def simple_verbosity_option(
|
||||
logger: logging.Logger | str | None = None, *names: str, **kwargs: t.Any
|
||||
) -> t.Callable[[_FC], _FC]: ...
|
||||
def simple_verbosity_option(logger: logging.Logger | str | None = None, *names: str, **kwargs: Any) -> Callable[[_FC], _FC]: ...
|
||||
|
||||
Reference in New Issue
Block a user