Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lazy loading to skimage.draw submodule (#6971)
- Loading branch information
Showing
4 changed files
with
49 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,3 @@ | ||
from .draw import (ellipse, set_color, polygon_perimeter, | ||
line, line_aa, polygon, ellipse_perimeter, | ||
circle_perimeter, circle_perimeter_aa, | ||
disk, bezier_curve, rectangle, rectangle_perimeter) | ||
from .draw3d import ellipsoid, ellipsoid_stats | ||
from ._draw import _bezier_segment | ||
from ._random_shapes import random_shapes | ||
from ._polygon2mask import polygon2mask | ||
import lazy_loader as lazy | ||
|
||
from .draw_nd import line_nd | ||
|
||
__all__ = ['line', | ||
'line_aa', | ||
'line_nd', | ||
'bezier_curve', | ||
'polygon', | ||
'polygon_perimeter', | ||
'ellipse', | ||
'ellipse_perimeter', | ||
'ellipsoid', | ||
'ellipsoid_stats', | ||
'circle_perimeter', | ||
'circle_perimeter_aa', | ||
'disk', | ||
'set_color', | ||
'random_shapes', | ||
'rectangle', | ||
'rectangle_perimeter', | ||
'polygon2mask'] | ||
__getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Explicitly setting `__all__` is necessary for type inference engines | ||
# to know which symbols are exported. See | ||
# https://peps.python.org/pep-0484/#stub-files | ||
|
||
__all__ = [ | ||
'line', | ||
'line_aa', | ||
'line_nd', | ||
'bezier_curve', | ||
'polygon', | ||
'polygon_perimeter', | ||
'ellipse', | ||
'ellipse_perimeter', | ||
'ellipsoid', | ||
'ellipsoid_stats', | ||
'circle_perimeter', | ||
'circle_perimeter_aa', | ||
'disk', | ||
'set_color', | ||
'random_shapes', | ||
'rectangle', | ||
'rectangle_perimeter', | ||
'polygon2mask' | ||
] | ||
|
||
from .draw3d import ellipsoid, ellipsoid_stats | ||
from ._draw import _bezier_segment | ||
from ._random_shapes import random_shapes | ||
from ._polygon2mask import polygon2mask | ||
from .draw_nd import line_nd | ||
from .draw import ( | ||
ellipse, | ||
set_color, | ||
polygon_perimeter, | ||
line, | ||
line_aa, | ||
polygon, | ||
ellipse_perimeter, | ||
circle_perimeter, | ||
circle_perimeter_aa, | ||
disk, bezier_curve, | ||
rectangle, | ||
rectangle_perimeter | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters