Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed incompatibility with black version (#2656)

Benjamin Hacklea7455dcd273
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cf5a9d95f..3e230ffef 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,14 +35,14 @@ repos:
- id: python-check-blanket-noqa
name: Precision flake ignores
- repo: https://github.com/psf/black
- rev: 22.1.0
+ rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
- additional_dependencies: [black==20.8b1]
+ additional_dependencies: [black==22.3.0]
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
diff --git a/manim/mobject/graphing/coordinate_systems.py b/manim/mobject/graphing/coordinate_systems.py
index 57d474860..5e35303d9 100644
--- a/manim/mobject/graphing/coordinate_systems.py
+++ b/manim/mobject/graphing/coordinate_systems.py
@@ -881,7 +881,7 @@ class CoordinateSystem:
>>> from manim import Axes
>>> ax = Axes()
- >>> parabola = ax.plot(lambda x: x ** 2)
+ >>> parabola = ax.plot(lambda x: x**2)
>>> ax.input_to_graph_coords(x=3, graph=parabola)
(3, 9)
"""
@@ -1255,7 +1255,7 @@ class CoordinateSystem:
.. code-block:: python
ax = Axes()
- curve = ax.plot(lambda x: x ** 2)
+ curve = ax.plot(lambda x: x**2)
ax.angle_of_tangent(x=3, graph=curve)
# 1.4056476493802699
"""
@@ -1285,7 +1285,7 @@ class CoordinateSystem:
.. code-block:: python
ax = Axes()
- curve = ax.plot(lambda x: x ** 2)
+ curve = ax.plot(lambda x: x**2)
ax.slope_of_tangent(x=-2, graph=curve)
# -3.5000000259052038
"""