Skip to content

utils

Some Gandalf utils.

Gwaihir

Bases: Mount

A great big f**king eagle.

Source code in src\gandalf\utils.py
22
23
24
25
26
27
class Gwaihir(Mount):
    """A great big f**king eagle."""

    @staticmethod
    def ride():
        print("Whoooooooooosh")

Mount

Bases: ABC

A mount for Gandalf.

Source code in src\gandalf\utils.py
 5
 6
 7
 8
 9
10
11
class Mount(ABC):
    """A mount for Gandalf."""

    @staticmethod
    @abstractmethod
    def ride() -> None:
        """Ride the mount."""

ride() abstractmethod staticmethod

Ride the mount.

Source code in src\gandalf\utils.py
 8
 9
10
11
@staticmethod
@abstractmethod
def ride() -> None:
    """Ride the mount."""

Shadowfax

Bases: Mount

A fast white pony.

Source code in src\gandalf\utils.py
14
15
16
17
18
19
class Shadowfax(Mount):
    """A fast white pony."""

    @staticmethod
    def ride():
        print("WEEEEEE!")