Skip to content

Commit 4c90630

Browse files
committed
Removed two assert statements that triggered errors in the unittests.
1 parent 689dd82 commit 4c90630

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
@@ -1140,8 +1140,7 @@ def frame_width(self, value: float) -> None:
11401140
@property
11411141
def frame_y_radius(self) -> float:
11421142
"""Half the frame height (no flag)."""
1143-
assert isinstance(self._d["frame_height"], float)
1144-
return self._d["frame_height"] / 2
1143+
return self._d["frame_height"] / 2 # type: ignore[operator]
11451144

11461145
@frame_y_radius.setter
11471146
def frame_y_radius(self, value: float) -> None:
@@ -1152,8 +1151,7 @@ def frame_y_radius(self, value: float) -> None:
11521151
@property
11531152
def frame_x_radius(self) -> float:
11541153
"""Half the frame width (no flag)."""
1155-
assert isinstance(self._d["frame_width"], float)
1156-
return self._d["frame_width"] / 2
1154+
return self._d["frame_width"] / 2 # type: ignore[operator]
11571155

11581156
@frame_x_radius.setter
11591157
def frame_x_radius(self, value: float) -> None:

0 commit comments

Comments
 (0)