enums ¶ AADirection ¶ Bases: CustomIntEnum BOTH class-attribute instance-attribute ¶ BOTH = 3 HORIZONTAL class-attribute instance-attribute ¶ HORIZONTAL = 2 VERTICAL class-attribute instance-attribute ¶ VERTICAL = 1 to_yx ¶ to_yx() -> tuple[bool, bool] Source code 15 16def to_yx(self) -> tuple[bool, bool]: return (bool(self & AADirection.VERTICAL), bool(self & AADirection.HORIZONTAL))