def decrease_surf_border(
    surface: Surface,
    thickness: 'positive_integer' = 1,
) -> [
    {'name': 'smaller_surface', 'type': Surface},
]:
    """Return smaller surface by cropping inner rectangle."""
    return surface.subsurface(
        surface.get_rect().inflate((thickness*-2,)*2)
    ).copy()
Return smaller surface by cropping inner rectangle.
nodezator/graphman/capsulenode/pygamedefs.py