From de762c170a9e585b7007619490032240d25fc031 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Mon, 23 Sep 2024 00:26:55 +0200 Subject: [PATCH] Removed old typings --- typings/aiocmd.pyi | 3 --- typings/mutagen.pyi | 6 ----- typings/pytube.pyi | 60 --------------------------------------------- 3 files changed, 69 deletions(-) delete mode 100644 typings/aiocmd.pyi delete mode 100644 typings/mutagen.pyi delete mode 100644 typings/pytube.pyi diff --git a/typings/aiocmd.pyi b/typings/aiocmd.pyi deleted file mode 100644 index cf63de0..0000000 --- a/typings/aiocmd.pyi +++ /dev/null @@ -1,3 +0,0 @@ -class aiocmd: - class PromptToolkitCmd: - async def run(self) -> None: ... diff --git a/typings/mutagen.pyi b/typings/mutagen.pyi deleted file mode 100644 index 4a740c9..0000000 --- a/typings/mutagen.pyi +++ /dev/null @@ -1,6 +0,0 @@ -class Info: - length: int - -class File: - def __init__(self, filename: str): ... - info: Info diff --git a/typings/pytube.pyi b/typings/pytube.pyi deleted file mode 100644 index 92854d3..0000000 --- a/typings/pytube.pyi +++ /dev/null @@ -1,60 +0,0 @@ -from __future__ import annotations -from collections.abc import Iterable -from typing import Any, Callable, Iterator, Optional - -class exceptions: - class PytubeError(Exception): ... - -class Channel: - channel_id: str - - def __init__(self, url: str) -> None: - pass - -class innertube: - class InnerTube: - base_url: str - base_data: dict[str, str] - base_params: dict[str, str] - - def _call_api( - self, endpoint: str, params: dict[str, str], data: dict[str, str] - ) -> dict[str, Any]: ... - def __init__(self, client: str) -> None: ... - -class Stream: - resolution: str - is_progressive: bool - is_adaptive: bool - abr: str - def download( - self, - output_path: Optional[str] = None, - filename_prefix: Optional[str] = None, - ) -> str: ... - -class StreamQuery(Iterable[Stream]): - resolution: str - def filter( - self, - type: Optional[str] = None, - custom_filter_functions: Optional[ - list[Callable[[StreamQuery], bool]] - ] = None, - only_audio: bool = False, - ) -> StreamQuery: ... - def __iter__(self) -> Iterator[Stream]: ... - -class YouTube: - def __init__(self, url: str) -> None: ... - - length: int - title: str - author: str - watch_url: str - streams: StreamQuery - -class Search: - results: Optional[list[YouTube]] - - def __init__(self, query: str) -> None: ...