Skip to content

Commit ea7455d

Browse files
Fixed incompatibility with black version (#2656)
* fixed incompatibility with black version * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e648d88 commit ea7455d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ repos:
3535
- id: python-check-blanket-noqa
3636
name: Precision flake ignores
3737
- repo: https://github.com/psf/black
38-
rev: 22.1.0
38+
rev: 22.3.0
3939
hooks:
4040
- id: black
4141
- repo: https://github.com/asottile/blacken-docs
4242
rev: v1.12.1
4343
hooks:
4444
- id: blacken-docs
45-
additional_dependencies: [black==20.8b1]
45+
additional_dependencies: [black==22.3.0]
4646
- repo: https://github.com/asottile/yesqa
4747
rev: v1.3.0
4848
hooks:

manim/mobject/graphing/coordinate_systems.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ def input_to_graph_coords(self, x: float, graph: ParametricFunction) -> tuple:
881881
882882
>>> from manim import Axes
883883
>>> ax = Axes()
884-
>>> parabola = ax.plot(lambda x: x ** 2)
884+
>>> parabola = ax.plot(lambda x: x**2)
885885
>>> ax.input_to_graph_coords(x=3, graph=parabola)
886886
(3, 9)
887887
"""
@@ -1255,7 +1255,7 @@ def angle_of_tangent(
12551255
.. code-block:: python
12561256
12571257
ax = Axes()
1258-
curve = ax.plot(lambda x: x ** 2)
1258+
curve = ax.plot(lambda x: x**2)
12591259
ax.angle_of_tangent(x=3, graph=curve)
12601260
# 1.4056476493802699
12611261
"""
@@ -1285,7 +1285,7 @@ def slope_of_tangent(self, x: float, graph: ParametricFunction, **kwargs) -> flo
12851285
.. code-block:: python
12861286
12871287
ax = Axes()
1288-
curve = ax.plot(lambda x: x ** 2)
1288+
curve = ax.plot(lambda x: x**2)
12891289
ax.slope_of_tangent(x=-2, graph=curve)
12901290
# -3.5000000259052038
12911291
"""

0 commit comments

Comments
 (0)