From d479d635ddb0539c808e439130636a58b09497a7 Mon Sep 17 00:00:00 2001 From: D4n13l3k00 Date: Tue, 17 Aug 2021 15:38:32 +0300 Subject: [PATCH] 1.4 --- anipics/parser.py | 4 ++-- example.py | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/anipics/parser.py b/anipics/parser.py index 3fefd13..4f10ec7 100644 --- a/anipics/parser.py +++ b/anipics/parser.py @@ -10,7 +10,7 @@ class _types: NekosLifeType = NewType('NekosLifeType', str) - AnimeApiHisokaType = NewType('NekosLifeType', str) + AnimeApiHisokaType = NewType('AnimeApiHisokaType', str) class Parser: class NekosLife: @@ -113,7 +113,7 @@ class NSFW: lesbian: _types.AnimeApiHisokaType = "lesbian" def get(query: Union[_types.AnimeApiHisokaType, str], nsfw: bool = False) -> Union[Models.Result, Coroutine[None, None, Models.Result]]: - """Get picture from nime-api.hisoka17.repl.co + """Get picture from anime-api.hisoka17.repl.co Args: query (AnimeApiHisokaType): See Parser/asyncParser.AnimeApiHisoka.types diff --git a/example.py b/example.py index c6ed175..8f338ac 100644 --- a/example.py +++ b/example.py @@ -12,7 +12,7 @@ def sync_example(): ap = Parser.AniPics print(ap.get().url) aah = Parser.AnimeApiHisoka - print(aah.get(aah.types.SFW.slap).url) + print(aah.get(aah.types.SFW.waifu).url) async def async_example(): @@ -21,7 +21,7 @@ async def async_example(): ap = asyncParser.AniPics print((await ap.get()).url) aah = asyncParser.AnimeApiHisoka - print((await aah.get(aah.types.NSFW.hentai, True)).url) + print((await aah.get(aah.types.SFW.waifu, True)).url) if __name__ == '__main__': diff --git a/setup.py b/setup.py index 2a98e33..4ffb676 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description = fh.read() setup(name='anipics', - version='1.3', + version='1.4', description='Simple module for getting anime pictures', long_description=long_description, long_description_content_type="text/markdown",