Initial commit

This commit is contained in:
Naruse
2024-11-07 23:25:15 +08:00
commit e8e5f3a1a7
246 changed files with 27356 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import TypeVar
T = TypeVar("T", bound="BaseResource")
@dataclass
class BaseResource(ABC):
def on_load(self: T) -> bool:
"""returns True by default if item loaded, otherwise will be skipped"""
return True
@abstractmethod
def get_index(self) -> str:
pass