Skip to content

Commit 2648748

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f38894b commit 2648748

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/spatialdata_plot/pl/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,11 +1811,7 @@ def _get_wanted_render_elements(
18111811
):
18121812
wants_elements = True
18131813
if element_type in ["images", "labels", "points", "shapes"]: # Prevents eval security risk
1814-
wanted_elements = (
1815-
params.elements
1816-
if params.elements is not None
1817-
else list(getattr(sdata, element_type).keys())
1818-
)
1814+
wanted_elements = params.elements if params.elements is not None else list(getattr(sdata, element_type).keys())
18191815

18201816
wanted_elements_on_cs = [
18211817
element for element in wanted_elements if cs in set(get_transformation(sdata[element], get_all=True).keys())

0 commit comments

Comments
 (0)