KonstantinKlepikov / BoardGameBuilder

Object-oriented framework for build board game logic in python

Home Page:https://konstantinklepikov.github.io/BoardGameBuilder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix Bag get_items()

KonstantinKlepikov opened this issue · comments

    def get_items(self) -> dict[str, BaseItem]:
        return {
            key: val for key, val
            in self.__dict__.items()
            if issubclass(val.__class__, BaseItem)
                }