| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -757,8 +757,7 @@ def set_clip_box(self, clipbox): | |||
| 757 | 757 | ||
| 758 | 758 | Parameters | |
| 759 | 759 | ---------- | |
| 760 | - clipbox : `.Bbox` | ||
| 761 | - | ||
| 760 | + clipbox : `.Bbox` or None | ||
| 762 | 761 | Typically would be created from a `.TransformedBbox`. For | |
| 763 | 762 | instance ``TransformedBbox(Bbox([[0, 0], [1, 1]]), ax.transAxes)`` | |
| 764 | 763 | is the default clipping for an artist added to an Axes. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,7 +51,7 @@ class Artist: | |||
| 51 | 51 | def remove_callback(self, oid: int) -> None: ... | |
| 52 | 52 | def pchanged(self) -> None: ... | |
| 53 | 53 | def is_transform_set(self) -> bool: ... | |
| 54 | - def set_transform(self, t: Transform) -> None: ... | ||
| 54 | + def set_transform(self, t: Transform | None) -> None: ... | ||
| 55 | 55 | def get_transform(self) -> Transform: ... | |
| 56 | 56 | def get_children(self) -> list[Artist]: ... | |
| 57 | 57 | # TODO can these dicts be type narrowed? e.g. str keys | |
@@ -87,7 +87,7 @@ class Artist: | |||
| 87 | 87 | def get_path_effects(self) -> list[AbstractPathEffect]: ... | |
| 88 | 88 | def get_figure(self) -> Figure | None: ... | |
| 89 | 89 | def set_figure(self, fig: Figure) -> None: ... | |
| 90 | - def set_clip_box(self, clipbox: Bbox) -> None: ... | ||
| 90 | + def set_clip_box(self, clipbox: Bbox | None) -> None: ... | ||
| 91 | 91 | def set_clip_path( | |
| 92 | 92 | self, | |
| 93 | 93 | path: Patch | Path | TransformedPath | TransformedPatchPath | None, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,7 @@ class Axes(_AxesBase): | |||
| 52 | 52 | def get_legend_handles_labels( | |
| 53 | 53 | self, legend_handler_map: dict[type, HandlerBase] | None = ... | |
| 54 | 54 | ) -> tuple[list[Artist], list[Any]]: ... | |
| 55 | - legend_: Legend | ||
| 55 | + legend_: Legend | None | ||
| 56 | 56 | ||
| 57 | 57 | @overload | |
| 58 | 58 | def legend(self) -> Legend: ... | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -168,7 +168,7 @@ class GraphicsContextBase: | |||
| 168 | 168 | def set_url(self, url: str | None) -> None: ... | |
| 169 | 169 | def set_gid(self, id: int | None) -> None: ... | |
| 170 | 170 | def set_snap(self, snap: bool | None) -> None: ... | |
| 171 | - def set_hatch(self, hatch: str) -> None: ... | ||
| 171 | + def set_hatch(self, hatch: str | None) -> None: ... | ||
| 172 | 172 | def get_hatch(self) -> str | None: ... | |
| 173 | 173 | def get_hatch_path(self, density: float = ...) -> Path: ... | |
| 174 | 174 | def get_hatch_color(self) -> ColorType: ... | |
@@ -386,8 +386,8 @@ class FigureManagerBase: | |||
| 386 | 386 | num: int | str | |
| 387 | 387 | key_press_handler_id: int | None | |
| 388 | 388 | button_press_handler_id: int | None | |
| 389 | - toolmanager: ToolManager | ||
| 390 | - toolbar: NavigationToolbar2 | ||
| 389 | + toolmanager: ToolManager | None | ||
| 390 | + toolbar: NavigationToolbar2 | ToolContainerBase | None | ||
| 391 | 391 | def __init__(self, canvas: FigureCanvasBase, num: int | str) -> None: ... | |
| 392 | 392 | @classmethod | |
| 393 | 393 | def create_with_canvas( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ class Colorbar: | |||
| 23 | 23 | n_rasterize: int | |
| 24 | 24 | mappable: cm.ScalarMappable | |
| 25 | 25 | ax: Axes | |
| 26 | - alpha: float | ||
| 26 | + alpha: float | None | ||
| 27 | 27 | cmap: colors.Colormap | |
| 28 | 28 | norm: colors.Normalize | |
| 29 | 29 | values: Sequence[float] | None | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,7 @@ class _ImageBase(martist.Artist, cm.ScalarMappable): | |||
| 74 | 74 | def set_array(self, A: ArrayLike | None) -> None: ... | |
| 75 | 75 | def get_shape(self) -> tuple[int, int, int]: ... | |
| 76 | 76 | def get_interpolation(self) -> str: ... | |
| 77 | - def set_interpolation(self, s: str) -> None: ... | ||
| 77 | + def set_interpolation(self, s: str | None) -> None: ... | ||
| 78 | 78 | def set_interpolation_stage(self, s: Literal["data", "rgba"]) -> None: ... | |
| 79 | 79 | def can_composite(self) -> bool: ... | |
| 80 | 80 | def set_resample(self, v: bool | None) -> None: ... | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -128,7 +128,7 @@ class Legend(Artist): | |||
| 128 | 128 | draw_frame = set_frame_on | |
| 129 | 129 | def get_bbox_to_anchor(self) -> BboxBase: ... | |
| 130 | 130 | def set_bbox_to_anchor( | |
| 131 | - self, bbox: BboxBase, transform: Transform | None = ... | ||
| 131 | + self, bbox: BboxBase | None, transform: Transform | None = ... | ||
| 132 | 132 | ) -> None: ... | |
| 133 | 133 | @overload | |
| 134 | 134 | def set_draggable( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,7 +76,6 @@ class Line2D(Artist): | |||
| 76 | 76 | def set_data(self, x: ArrayLike, y: ArrayLike) -> None: ... | |
| 77 | 77 | def recache_always(self) -> None: ... | |
| 78 | 78 | def recache(self, always: bool = ...) -> None: ... | |
| 79 | - def set_transform(self, t: Transform) -> None: ... | ||
| 80 | 79 | def get_antialiased(self) -> bool: ... | |
| 81 | 80 | def get_color(self) -> ColorType: ... | |
| 82 | 81 | def get_drawstyle(self) -> DrawStyleType: ... | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,7 +107,7 @@ def _get_packed_offsets(widths, total, sep, mode="fixed"): | |||
| 107 | 107 | Widths of boxes to be packed. | |
| 108 | 108 | total : float or None | |
| 109 | 109 | Intended total length. *None* if not used. | |
| 110 | - sep : float | ||
| 110 | + sep : float or None | ||
| 111 | 111 | Spacing between boxes. | |
| 112 | 112 | mode : {'fixed', 'expand', 'equal'} | |
| 113 | 113 | The packing mode. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ def bbox_artist(*args, **kwargs) -> None: ... | |||
| 19 | 19 | def _get_packed_offsets( | |
| 20 | 20 | widths: Sequence[float], | |
| 21 | 21 | total: float | None, | |
| 22 | - sep: float, | ||
| 22 | + sep: float | None, | ||
| 23 | 23 | mode: Literal["fixed", "expand", "equal"] = ..., | |
| 24 | 24 | ) -> tuple[float, np.ndarray]: ... | |
| 25 | 25 | ||
@@ -114,7 +114,6 @@ class DrawingArea(OffsetBox): | |||
| 114 | 114 | @clip_children.setter | |
| 115 | 115 | def clip_children(self, val: bool) -> None: ... | |
| 116 | 116 | def get_transform(self) -> Transform: ... | |
| 117 | - def set_transform(self, t: Transform) -> None: ... | ||
| 118 | 117 | ||
| 119 | 118 | # does not accept all options of superclass | |
| 120 | 119 | def set_offset(self, xy: tuple[float, float]) -> None: ... # type: ignore[override] | |
@@ -134,7 +133,6 @@ class TextArea(OffsetBox): | |||
| 134 | 133 | def get_text(self) -> str: ... | |
| 135 | 134 | def set_multilinebaseline(self, t: bool) -> None: ... | |
| 136 | 135 | def get_multilinebaseline(self) -> bool: ... | |
| 137 | - def set_transform(self, t: Transform) -> None: ... | ||
| 138 | 136 | ||
| 139 | 137 | # does not accept all options of superclass | |
| 140 | 138 | def set_offset(self, xy: tuple[float, float]) -> None: ... # type: ignore[override] | |
@@ -147,7 +145,6 @@ class AuxTransformBox(OffsetBox): | |||
| 147 | 145 | def __init__(self, aux_transform: Transform) -> None: ... | |
| 148 | 146 | def add_artist(self, a: martist.Artist) -> None: ... | |
| 149 | 147 | def get_transform(self) -> Transform: ... | |
| 150 | - def set_transform(self, t: Transform) -> None: ... | ||
| 151 | 148 | ||
| 152 | 149 | # does not accept all options of superclass | |
| 153 | 150 | def set_offset(self, xy: tuple[float, float]) -> None: ... # type: ignore[override] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments