Skip to content

Commit

Permalink
1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
D4n13l3k00 committed Aug 17, 2021
1 parent e08862d commit d479d63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions anipics/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class _types:
NekosLifeType = NewType('NekosLifeType', str)
AnimeApiHisokaType = NewType('NekosLifeType', str)
AnimeApiHisokaType = NewType('AnimeApiHisokaType', str)

class Parser:
class NekosLife:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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__':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d479d63

Please sign in to comment.