mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Make isinstance check work for python 3.7-3.9 (#1969)
This commit is contained in:
parent
ba1b43df1a
commit
b934ee5f50
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class VMobject(Mobject):
|
|||
if width is not None:
|
||||
for mob in self.get_family(recurse):
|
||||
data = mob.data if mob.get_num_points() > 0 else mob._data_defaults
|
||||
if isinstance(width, float | int):
|
||||
if isinstance(width, (float, int)):
|
||||
data['stroke_width'][:, 0] = width
|
||||
else:
|
||||
data['stroke_width'][:, 0] = resize_with_interpolation(
|
||||
|
|
Loading…
Add table
Reference in a new issue