mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
[pre-commit.ci] pre-commit autoupdate (#3332)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/asottile/pyupgrade: v3.10.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.15.2) - [github.com/psf/black: 23.7.0 → 24.4.0](https://github.com/psf/black/compare/23.7.0...24.4.0) - [github.com/asottile/blacken-docs: 1.15.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.15.0...1.16.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.9.0) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * make smoothererstep readable again, avoid overlong line * zoom_value more readable * fix blacken-docs touching .github * fix codespell setup, remove unnecessary file, fix some typos * flake8: ignore E704, triggered by overload * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update docs/source/tutorials/quickstart.rst * more flake fixes * try to make blacken-docs happy --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
This commit is contained in:
parent
0fd16b8918
commit
1aee37bfb5
39 changed files with 102 additions and 96 deletions
|
|
@ -77,8 +77,7 @@ Example:
|
|||
The mobject linked to this instance.
|
||||
"""
|
||||
|
||||
def __init__(name: str, id: int, singleton: MyClass, mobj: Mobject = None):
|
||||
...
|
||||
def __init__(name: str, id: int, singleton: MyClass, mobj: Mobject = None): ...
|
||||
|
||||
2. The usage of ``Parameters`` on functions to specify how
|
||||
every parameter works and what it does. This should be excluded if
|
||||
|
|
|
|||
|
|
@ -84,8 +84,7 @@ Typing guidelines
|
|||
T = TypeVar("T")
|
||||
|
||||
|
||||
def copy(self: T) -> T:
|
||||
...
|
||||
def copy(self: T) -> T: ...
|
||||
|
||||
* Use ``typing.Iterable`` whenever the function works with *any* iterable, not a specific type.
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ and then record it during rendering:
|
|||
from manim_voiceover import VoiceoverScene
|
||||
from manim_voiceover.services.recorder import RecorderService
|
||||
|
||||
|
||||
# Simply inherit from VoiceoverScene instead of Scene to get all the
|
||||
# voiceover functionality.
|
||||
class RecorderExample(VoiceoverScene):
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ Now let's look at the next two lines:
|
|||
|
||||
class CreateCircle(Scene):
|
||||
def construct(self):
|
||||
...
|
||||
[...]
|
||||
|
||||
Most of the time, the code for scripting an animation is entirely contained within
|
||||
the :meth:`~.Scene.construct` method of a :class:`.Scene` class.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue