From c7dbcd0c665722f7a3e41a502f1bd65cd3fc0994 Mon Sep 17 00:00:00 2001 From: Werseter Date: Fri, 28 Oct 2022 13:57:10 +0200 Subject: [PATCH 1/2] Alter dynamic docs generation --- cod_api/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cod_api/__init__.py b/cod_api/__init__.py index 939c470..1e85899 100644 --- a/cod_api/__init__.py +++ b/cod_api/__init__.py @@ -340,11 +340,8 @@ class __GameDataCommons(_Common): returns details match details of type dict """ - def __init__(self, doc): - super().__init__() - if doc is None: - doc - self.__doc__ = super().__doc__ + def __init_subclass__(cls, **kwargs): + cls.__doc__ = cls.__doc__ + super(cls, cls).__doc__ @property @abstractmethod From 9f054cda64c9be77a5d22d54d0194fd5542dfc2b Mon Sep 17 00:00:00 2001 From: Werseter Date: Fri, 28 Oct 2022 13:57:21 +0200 Subject: [PATCH 2/2] Fix more typos --- cod_api/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cod_api/__init__.py b/cod_api/__init__.py index 1e85899..ecaa9c9 100644 --- a/cod_api/__init__.py +++ b/cod_api/__init__.py @@ -413,7 +413,7 @@ def mapList(self, platform): class __WZ(__GameDataCommons): """ Warzone class: A class to get players warzone stats, warzone combat history and specific warzone match details - classCatogery: game + classCategory: game gameId/gameTitle: mw or wz gameType: wz @@ -438,7 +438,7 @@ async def mapListAsync(self, platform): class __WZ2(__GameDataCommons): """ Warzone 2 class: A class to get players warzone 2 stats, warzone 2 combat history and specific warzone 2 match details - classCatogery: game + classCategory: game gameId/gameTitle: mw or wz gameType: wz2 @@ -463,7 +463,7 @@ async def mapListAsync(self, platform): class __MW(__GameDataCommons): """ ModernWarfare class: A class to get players modernwarfare stats, modernwarfare combat history, a player's modernwarfare season loot, modernwarfare map list and specific modernwarfare match details - classCatogery: game + classCategory: game gameId/gameTitle: mw gameType: mp @@ -482,7 +482,7 @@ def _type(self) -> str: class __CW(__GameDataCommons): """ ColdWar class: A class to get players coldwar stats, coldwar combat history, a player's coldwar season loot, coldwar map list and specific coldwar match details - classCatogery: game + classCategory: game gameId/gameTitle: cw gameType: mp @@ -500,7 +500,7 @@ def _type(self) -> str: class __VG(__GameDataCommons): """ Vanguard class: A class to get players vanguard stats, vanguard combat history, a player's vanguard season loot, vanguard map list and specific vanguard match details - classCatogery: game + classCategory: game gameId/gameTitle: vg gameType: pm @@ -519,7 +519,7 @@ def _type(self) -> str: class __MW2(__GameDataCommons): """ ModernWarfare 2 class: A class to get players modernwarfare 2 stats, modernwarfare 2 combat history, a player's modernwarfare 2 season loot, modernwarfare 2 map list and specific modernwarfare 2 match details - classCatogery: game + classCategory: game gameId/gameTitle: mw gameType: mp @@ -611,7 +611,7 @@ def settings(self): class __SHOP(_Common): """ Shop class: A class to get bundle details and battle pass loot - classCatogery: other + classCategory: other Methods =======