enums ¶ Classes: AADirection – AADirection ¶ Bases: CustomIntEnum Methods: to_yx – Attributes: BOTH – HORIZONTAL – VERTICAL – 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))