@@ -172,12 +172,13 @@ async def get_detailed_clan(self) -> Optional["Clan"]:
172172
173173 @cached_property ("_cs_player_house_elements" )
174174 def player_house_elements (self ) -> List [PlayerHouseElement ]:
175- """List[:class:`PlayerHouseElement`]: A :class:`List` of :class:`PlayerHouseElement`s that the player has."""
175+ """List[:class:`PlayerHouseElement`]: A :class:`List` of :class:`PlayerHouseElement`\ s that the player has."""
176176 return list (self ._iter_player_house_elements )
177177
178178
179179class RankedPlayer (ClanMember ):
180- """Represents a leaderboard-ranked player.
180+ """
181+ Represents a leaderboard-ranked player.
181182
182183 Attributes
183184 ----------
@@ -209,7 +210,8 @@ def _from_data(self, data: dict) -> None:
209210
210211
211212class Player (ClanMember ):
212- """Represents a Clash of Clans Player.
213+ """
214+ Represents a Clash of Clans Player.
213215
214216 Attributes
215217 ----------
@@ -247,8 +249,6 @@ class Player(ClanMember):
247249 war_opted_in: Optional[:class:`bool`]
248250 Whether the player has selected that they are opted "in" (True) for wars, or opted "out" (False).
249251 This will be ``None`` if the player is not in a clan.
250- equipment: List[:class:`Equipment`]
251- The player's unlocked hero equipment
252252 """
253253
254254 __slots__ = (
@@ -362,7 +362,7 @@ def _from_data(self, data: dict) -> None:
362362 label_cls = self .label_cls
363363 achievement_cls = self .achievement_cls
364364 troop_loader = self ._client ._troop_holder .load if self ._client else None
365- hero_loader = self ._client ._hero_holder .load if self ._client else None
365+ hero_loader = self ._client ._hero_holder .load if self ._client else None
366366 spell_loader = self ._client ._spell_holder .load if self ._client else None
367367 pet_loader = self ._client ._pet_holder .load if self ._client else None
368368 equipment_loader = self ._client ._equipment_holder .load if self ._client else None
@@ -462,7 +462,7 @@ def load_game_data(self):
462462
463463 @cached_property ("_cs_labels" )
464464 def labels (self ) -> List [Label ]:
465- """List[:class:`Label`]: A :class:`List` of :class:`Label`s that the player has."""
465+ """List[:class:`Label`]: A :class:`List` of :class:`Label`\ s that the player has."""
466466 return list (self ._iter_labels )
467467
468468 @cached_property ("_cs_achievements" )
@@ -547,7 +547,7 @@ def troops(self) -> List[Troop]:
547547 def home_troops (self ) -> List [Troop ]:
548548 """List[:class:`Troop`]: A :class:`List` of the player's home-base :class:`Troop`.
549549
550- This will return troops in the order found in both barracks and labatory in-game.
550+ This will return troops in the order found in both barracks and laboratory in-game.
551551
552552 This includes:
553553 - Elixir Troops (Barbarian, Balloon, etc.)
@@ -566,7 +566,7 @@ def home_troops(self) -> List[Troop]:
566566 def builder_troops (self ) -> List [Troop ]:
567567 """List[:class:`Troop`]: A :class:`List` of the player's builder-base :class:`Troop`.
568568
569- This will return troops in the order found in both barracks and labatory in-game.
569+ This will return troops in the order found in both barracks and laboratory in-game.
570570
571571 This includes:
572572 - Builder troops
@@ -582,7 +582,7 @@ def builder_troops(self) -> List[Troop]:
582582 def siege_machines (self ) -> List [Troop ]:
583583 """List[:class:`Troop`]: A :class:`List` of the player's siege-machine :class:`Troop`.
584584
585- This will return siege machines in the order found in both barracks and labatory in-game.
585+ This will return siege machines in the order found in both barracks and laboratory in-game.
586586
587587 This includes:
588588 - Siege machines only.
@@ -699,7 +699,7 @@ def get_troop(self, name: str, is_home_troop=None, default_value=None) -> Option
699699 Returns
700700 --------
701701 Optional[:class:`Troop`]
702- The returned troop or the ``default_value`` if not found, which defaults to ``None``..
702+ The returned troop or the ``default_value`` if not found, which defaults to ``None``.
703703 """
704704 _ = self .troops
705705
@@ -721,7 +721,7 @@ def get_troop(self, name: str, is_home_troop=None, default_value=None) -> Option
721721 def heroes (self ) -> List [Hero ]:
722722 """List[:class:`Hero`]: A :class:`List` of the player's :class:`Hero`.
723723
724- This will return heroes in the order found in the store and labatory in-game.
724+ This will return heroes in the order found in the store and laboratory in-game.
725725 """
726726 heroes_dict = {h .name : h for h in self ._iter_heroes }
727727 sorted_heroes = {}
@@ -763,15 +763,15 @@ def get_hero(self, name: str, default_value=None) -> Optional[Hero]:
763763 def spells (self ) -> List [Spell ]:
764764 """List[:class:`Spell`]: A :class:`List` of the player's :class:`Spell` ordered as they appear in-game.
765765
766- This will return spells in the order found in both spell factory and labatory in-game.
766+ This will return spells in the order found in both spell factory and laboratory in-game.
767767 """
768768 self ._spells = {s .name : s for s in self ._iter_spells }
769769 dict_spells = self ._spells
770770 order = {k : v for v , k in enumerate (SPELL_ORDER )}
771771
772772 return list (sorted (
773- dict_spells .values (),
774- key = lambda s : order .get (s .name , 0 )))
773+ dict_spells .values (),
774+ key = lambda s : order .get (s .name , 0 )))
775775
776776 def get_spell (self , name : str , default_value = None ) -> Optional [Spell ]:
777777 """Gets the spell with the given name.
@@ -786,7 +786,7 @@ def get_spell(self, name: str, default_value=None) -> Optional[Spell]:
786786 Returns
787787 --------
788788 Optional[:class:`Spell`]
789- The returned spell or the ``default_value`` if not found, which defaults to ``None``..
789+ The returned spell or the ``default_value`` if not found, which defaults to ``None``.
790790 """
791791 if not self ._spells :
792792 _ = self .spells
0 commit comments