mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Stardew Valley: remove BaseLogic generic so importing mixins is no longer needed (#4916)
* remove BaseLogic generic so importing mixins is no longer needed * self review
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
from typing import Union
|
||||
|
||||
from Utils import cache_self1
|
||||
from .base_logic import BaseLogicMixin, BaseLogic
|
||||
from .has_logic import HasLogicMixin
|
||||
from .received_logic import ReceivedLogicMixin
|
||||
from ..stardew_rule import StardewRule
|
||||
|
||||
|
||||
@@ -13,7 +9,7 @@ class BookLogicMixin(BaseLogicMixin):
|
||||
self.book = BookLogic(*args, **kwargs)
|
||||
|
||||
|
||||
class BookLogic(BaseLogic[Union[ReceivedLogicMixin, HasLogicMixin]]):
|
||||
class BookLogic(BaseLogic):
|
||||
|
||||
@cache_self1
|
||||
def has_book_power(self, book: str) -> StardewRule:
|
||||
|
||||
Reference in New Issue
Block a user