[ci] apply-plugin-metadata-and-formatting

This commit is contained in:
andrejkuroglo8 2026-05-10 11:22:18 +00:00 committed by github-actions[bot]
parent bbf36dc4a9
commit 7c5038263c

View file

@ -11,7 +11,7 @@ import enum
if TYPE_CHECKING:
from typing import Type, Callable, Any, Tuple
plugman = dict(
plugin_name="glowing_profiles",
description="This plugin gives your profile glowlight, just like on some servers, but only offline",
@ -22,6 +22,7 @@ plugman = dict(
version="1.0.0",
)
def redefine_method(dst: Tuple[Any, str], src: Tuple[Any, str]) -> None:
if hasattr(getattr(*src), '__redefine_type') and getattr(*src).__redefine_type in (
RedefineFlag.DECORATE_PRE, RedefineFlag.DECORATE_AFTER, RedefineFlag.DECORATE_ADVANCED):
@ -81,6 +82,7 @@ def redefine_class_methods(orig_cls: Type[object]) -> Callable[[Any], None]:
return decorator
class RedefineFlag(enum.Enum):
REDEFINE = 0
DECORATE_AFTER = 1
@ -99,6 +101,7 @@ def redefine_flag(*flags: RedefineFlag) -> Callable[[Callable], Callable]:
return decorator
def get_locale(*args):
return "Error"
@ -213,5 +216,7 @@ class Chooser:
self._update_text()
# ba_meta export babase.Plugin
class Glowing(babase.Plugin):
pass
pass