Skip to content

square

Square(x, y, size) dataclass

Bases: BaseShape

A square shape for reference marks.

type()

Return the type of shape. Always 'square' for this class.

Returns:

Type Description
str

The type of shape. Always 'square'.

Source code in layerforge/domain/shapes/square.py
10
11
12
13
14
15
16
17
18
def type(self) -> str:
    """Return the type of shape. Always 'square' for this class.

    Returns
    -------
    str
        The type of shape. Always 'square'.
    """
    return 'square'