pass
-@typing.overload # noqa: F811
+@typing.overload
def future_add_done_callback(
future: "Future[_T]", callback: Callable[["Future[_T]"], None]
) -> None:
pass
-def future_add_done_callback( # noqa: F811
+def future_add_done_callback(
future: "Union[futures.Future[_T], Future[_T]]", callback: Callable[..., None]
) -> None:
"""Arrange to call ``callback`` when ``future`` is complete.
def __init__(self, __arg: Mapping[str, list[str]]) -> None:
pass
- @typing.overload # noqa: F811
+ @typing.overload
def __init__(self, __arg: Mapping[str, str]) -> None:
pass
- @typing.overload # noqa: F811
+ @typing.overload
def __init__(self, *args: tuple[str, str]) -> None:
pass
- @typing.overload # noqa: F811
+ @typing.overload
def __init__(self, **kwargs: str) -> None:
pass
- def __init__(self, *args: typing.Any, **kwargs: str) -> None: # noqa: F811
+ def __init__(self, *args: typing.Any, **kwargs: str) -> None:
# Formally, HTTP headers are a mapping from a field name to a "combined field value",
# which may be constructed from multiple field lines by joining them with commas.
# In practice, however, some headers (notably Set-Cookie) do not follow this convention,
@typing.overload
@staticmethod
- def current(instance: bool = True) -> IOLoop | None: # noqa: F811
+ def current(instance: bool = True) -> IOLoop | None:
pass
@staticmethod
- def current(instance: bool = True) -> IOLoop | None: # noqa: F811
+ def current(instance: bool = True) -> IOLoop | None:
"""Returns the current thread's `IOLoop`.
If an `IOLoop` is currently running or has been marked as
) -> None:
pass
- @typing.overload # noqa: F811
+ @typing.overload
def add_handler(
self, fd: _S, handler: Callable[[_S, int], None], events: int
) -> None:
pass
- def add_handler( # noqa: F811
+ def add_handler(
self, fd: int | _Selectable, handler: Callable[..., None], events: int
) -> None:
"""Registers the given handler to receive the given events for ``fd``.
"""
class FutureCell(TypedDict):
- # noqa: F841
future: Future | None
timeout_called: bool
pass
-@overload # noqa: F811
+@overload
def _unquote_or_none(s: None) -> None:
pass
-def _unquote_or_none(s: str | None) -> bytes | None: # noqa: F811
+def _unquote_or_none(s: str | None) -> bytes | None:
"""None-safe wrapper around url_unescape to handle unmatched optional
groups correctly.
-# flake8: noqa
import subprocess
import sys
import unittest
pass
-@typing.overload # noqa: F811
+@typing.overload
def gen_test(func: Callable[..., Union[Generator, "Coroutine"]]) -> Callable[..., None]:
pass
-def gen_test( # noqa: F811
+def gen_test(
func: Callable[..., Union[Generator, "Coroutine"]] | None = None,
timeout: float | None = None,
) -> (
pass
@overload
- def get_argument( # noqa: F811
+ def get_argument(
self, name: str, default: _ArgDefaultMarker = _ARG_DEFAULT, strip: bool = True
) -> str:
pass
@overload
- def get_argument( # noqa: F811
- self, name: str, default: None, strip: bool = True
- ) -> str | None:
+ def get_argument(self, name: str, default: None, strip: bool = True) -> str | None:
pass
- def get_argument( # noqa: F811
+ def get_argument(
self,
name: str,
default: None | str | _ArgDefaultMarker = _ARG_DEFAULT,
pass
@overload
- def get_body_argument( # noqa: F811
+ def get_body_argument(
self, name: str, default: _ArgDefaultMarker = _ARG_DEFAULT, strip: bool = True
) -> str:
pass
@overload
- def get_body_argument( # noqa: F811
+ def get_body_argument(
self, name: str, default: None, strip: bool = True
) -> str | None:
pass
- def get_body_argument( # noqa: F811
+ def get_body_argument(
self,
name: str,
default: None | str | _ArgDefaultMarker = _ARG_DEFAULT,
pass
@overload
- def get_query_argument( # noqa: F811
+ def get_query_argument(
self, name: str, default: _ArgDefaultMarker = _ARG_DEFAULT, strip: bool = True
) -> str:
pass
@overload
- def get_query_argument( # noqa: F811
+ def get_query_argument(
self, name: str, default: None, strip: bool = True
) -> str | None:
pass
- def get_query_argument( # noqa: F811
+ def get_query_argument(
self,
name: str,
default: None | str | _ArgDefaultMarker = _ARG_DEFAULT,