mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
feat: dont import any networking lib unless used
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import TYPE_CHECKING, ClassVar, Dict
|
||||
|
||||
from httpx import Client
|
||||
|
||||
from .params import AnimeParams, EpisodeStreamsParams, SearchParams
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Iterator
|
||||
|
||||
from httpx import Client
|
||||
|
||||
from .types import Anime, SearchResults, Server
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class BaseAnimeProvider(ABC):
|
||||
f"Subclasses of BaseAnimeProvider must define a 'HEADERS' class attribute."
|
||||
)
|
||||
|
||||
def __init__(self, client: Client) -> None:
|
||||
def __init__(self, client: "Client") -> None:
|
||||
self.client = client
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user