Skip to content

Commit

Permalink
v1.4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 6, 2025
1 parent b3761b0 commit 33fdede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kpi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def on_loaded(self):
pass

class Config: pass
class Config(JSONStorage):
class Config(JSONStorage): # type: ignore # ignore no-redef
msg_id: ClassVar[MCDR.RTextBase]
def_level: ClassVar[int]
instance: 'ClassVar[Optional[Config]]'
Expand All @@ -352,8 +352,8 @@ def __init_subclass__(cls, msg_id, def_level: int = 4, **kwargs):
cls.instance = None

@classmethod
def init_instance(cls: Type[SelfConfig], plugin: MCDR.PluginServerInterface, *args,
sync_update: bool = True, **kwargs) -> SelfConfig:
def init_instance(cls, plugin: MCDR.PluginServerInterface, *args,
sync_update: bool = True, **kwargs) -> Self:
if cls.instance is not None:
raise RuntimeError('Cannot init instance twice')
cls.instance = cls(plugin, *args, sync_update=sync_update, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "kpi",
"version": "1.4.10",
"version": "1.4.11",
"name": "KPI",
"description": {
"en_us": "A MCDR plugins codes share library",
Expand Down

0 comments on commit 33fdede

Please sign in to comment.