fix classvar mixup

This commit is contained in:
Silvris
2024-03-20 16:06:37 -05:00
parent 59fca0bf81
commit b15ecd5f88

View File

@@ -41,7 +41,7 @@ class AutoPatchRegister(abc.ABCMeta):
class AutoPatchExtensionRegister(abc.ABCMeta):
extension_types: ClassVar[Dict[str, AutoPatchExtensionRegister]] = {}
required_extensions: ClassVar[Tuple[str, ...]] = ()
required_extensions: Tuple[str, ...] = ()
def __new__(mcs, name: str, bases: Tuple[type, ...], dct: Dict[str, Any]) -> AutoPatchExtensionRegister:
# construct class
@@ -374,7 +374,7 @@ class APPatchExtension(metaclass=AutoPatchExtensionRegister):
Patch extension functions must return the changed bytes.
"""
game: str
required_extensions: List[str] = []
required_extensions: ClassVar[Tuple[str, ...]] = ()
@staticmethod
def apply_bsdiff4(caller: APProcedurePatch, rom: bytes, patch: str):