Skip to content

Commit 88836df

Browse files
pre-commit-ci[bot]MrDiverbehackl
authored
[pre-commit.ci] pre-commit autoupdate (#3308)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](asottile/pyupgrade@v3.9.0...v3.10.1) - [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0) * fixed flake8 E721 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tristan Schulz <[email protected]> Co-authored-by: Benjamin Hackl <[email protected]>
1 parent 82e55b5 commit 88836df

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
name: isort (pyi)
2525
types: [pyi]
2626
- repo: https://github.com/asottile/pyupgrade
27-
rev: v3.9.0
27+
rev: v3.10.1
2828
hooks:
2929
- id: pyupgrade
3030
name: Update code to new python versions
@@ -44,7 +44,7 @@ repos:
4444
- id: blacken-docs
4545
additional_dependencies: [black==22.3.0]
4646
- repo: https://github.com/PyCQA/flake8
47-
rev: 6.0.0
47+
rev: 6.1.0
4848
hooks:
4949
- id: flake8
5050
additional_dependencies:

manim/mobject/opengl/opengl_image_mobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(
2929
):
3030
self.image = filename_or_array
3131
self.resampling_algorithm = resampling_algorithm
32-
if type(filename_or_array) == np.ndarray:
32+
if isinstance(filename_or_array, np.ndarray):
3333
self.size = self.image.shape[1::-1]
3434
elif isinstance(filename_or_array, (str, Path)):
3535
path = get_full_raster_image_path(filename_or_array)

manim/mobject/opengl/opengl_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def __init__(
380380

381381
if not isinstance(uv_surface, OpenGLSurface):
382382
raise Exception("uv_surface must be of type OpenGLSurface")
383-
if type(image_file) == np.ndarray:
383+
if isinstance(image_file, np.ndarray):
384384
image_file = change_to_rgba_array(image_file)
385385

386386
# Set texture information

manim/mobject/svg/svg_mobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def get_mobjects_from(self, svg: se.SVG) -> list[VMobject]:
280280
mob = self.polyline_to_mobject(shape)
281281
elif isinstance(shape, se.Text):
282282
mob = self.text_to_mobject(shape)
283-
elif isinstance(shape, se.Use) or type(shape) == se.SVGElement:
283+
elif isinstance(shape, se.Use) or type(shape) is se.SVGElement:
284284
continue
285285
else:
286286
logger.warning(f"Unsupported element type: {type(shape)}")

0 commit comments

Comments
 (0)