Skip to content

Commit 5484d9e

Browse files
committed
Removed two assert statements that triggered errors in the unittests.
1 parent 4e2fb86 commit 5484d9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

manim/_config/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,7 @@ def frame_width(self, value: float) -> None:
11341134
@property
11351135
def frame_y_radius(self) -> float:
11361136
"""Half the frame height (no flag)."""
1137-
assert isinstance(self._d["frame_height"], float)
1138-
return self._d["frame_height"] / 2
1137+
return self._d["frame_height"] / 2 # type: ignore[operator]
11391138

11401139
@frame_y_radius.setter
11411140
def frame_y_radius(self, value: float) -> None:
@@ -1146,8 +1145,7 @@ def frame_y_radius(self, value: float) -> None:
11461145
@property
11471146
def frame_x_radius(self) -> float:
11481147
"""Half the frame width (no flag)."""
1149-
assert isinstance(self._d["frame_width"], float)
1150-
return self._d["frame_width"] / 2
1148+
return self._d["frame_width"] / 2 # type: ignore[operator]
11511149

11521150
@frame_x_radius.setter
11531151
def frame_x_radius(self, value: float) -> None:

0 commit comments

Comments
 (0)