Skip to content

Commit

Permalink
🔖 v0.1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
beastmatser committed Apr 6, 2023
1 parent 26081ae commit 0f69261
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers =
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Utilities
Typing :: Typed
version = 0.1.4
version = 0.1.5.1

[options]
zip_safe = False
Expand Down
4 changes: 2 additions & 2 deletions src/aiopoke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__author__ = "beastmatser"
__license__ = "MIT"
__copyright__ = "Copyright 2021-present beastmatser"
__version__ = "0.1.4"
__version__ = "0.1.5.1"

from typing import NamedTuple

Expand Down Expand Up @@ -83,7 +83,7 @@ def __repr__(self) -> str:
return f"{self.major}.{self.minor}.{self.micro}-{self.releaselevel}"


version_info: VersionInfo = VersionInfo(0, 1, 3, "final")
version_info: VersionInfo = VersionInfo(0, 1, 5, "final")


__all__ = (
Expand Down
21 changes: 15 additions & 6 deletions src/aiopoke/objects/utility/common_models/sprites.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(self, data) -> None:
self.generation_viii = self.generation_8 = GenerationVIIISprites(
data["versions"]["generation-viii"]
)

self.other = Other(data["other"]) if data.get("other") is not None else None


Expand Down Expand Up @@ -392,11 +391,21 @@ class Other:
home_front_shiny_female: OptionalSprite

def __init__(self, data) -> None:
self.dream_world_front_default = Sprite.from_url(data["dream_world"]["front_default"])
self.dream_world_front_female = Sprite.from_url(data["dream_world"]["front_female"])
self.dream_world_front_default = Sprite.from_url(
data["dream_world"]["front_default"]
)
self.dream_world_front_female = Sprite.from_url(
data["dream_world"]["front_female"]
)
self.home_front_default = Sprite.from_url(data["home"]["front_default"])
self.home_front_female = Sprite.from_url(data["home"]["front_female"])
self.home_front_shiny = Sprite.from_url(data["home"]["front_shiny"])
self.home_front_shiny_female = Sprite.from_url(data["home"]["front_shiny_female"])
self.official_artwork_front_default = Sprite.from_url(data["official-artwork"]["front_default"])
self.official_artwork_front_shiny = Sprite.from_url(data["official-artwork"]["front_shiny"])
self.home_front_shiny_female = Sprite.from_url(
data["home"]["front_shiny_female"]
)
self.official_artwork_front_default = Sprite.from_url(
data["official-artwork"]["front_default"]
)
self.official_artwork_front_shiny = Sprite.from_url(
data["official-artwork"]["front_shiny"]
)

0 comments on commit 0f69261

Please sign in to comment.