Merge branch 'main' into fix_zoomed_camera_image_mobject_config_unable_to_configure

This commit is contained in:
Henrik Skov Midtiby 2025-10-23 08:51:15 +02:00 committed by GitHub
commit d44c4710d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 10 deletions

View file

@ -13,7 +13,7 @@ repos:
- id: check-toml
name: Validate pyproject.toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.9
rev: v0.13.3
hooks:
- id: ruff
name: ruff lint
@ -22,7 +22,7 @@ repos:
- id: ruff-format
types: [python]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
rev: v1.18.2
hooks:
- id: mypy
additional_dependencies:

View file

@ -170,7 +170,7 @@ class SampleSpace(Rectangle):
"direction": direction,
"buff": buff,
}
return VGroup(parts.braces, parts.labels) # type: ignore[arg-type]
return VGroup(parts.braces, parts.labels)
def get_side_braces_and_labels(
self,

View file

@ -971,8 +971,8 @@ class LinearTransformationScene(VectorScene):
)
label_mob.vector = vector # type: ignore[attr-defined]
label_mob.kwargs = kwargs # type: ignore[attr-defined]
if "animate" in label_mob.kwargs: # type: ignore[operator]
label_mob.kwargs.pop("animate") # type: ignore[attr-defined]
if "animate" in label_mob.kwargs:
label_mob.kwargs.pop("animate")
self.transformable_labels.append(label_mob)
return cast(MathTex, label_mob)

View file

@ -6,7 +6,7 @@ from typing import TYPE_CHECKING
from docutils import nodes
from docutils.parsers.rst import Directive
from docutils.statemachine import ViewList
from docutils.statemachine import StringList
from manim.utils.docbuild.module_parsing import parse_module_attributes
@ -143,7 +143,7 @@ class AliasAttrDocumenter(Directive):
# Using the `.. class::` directive is CRUCIAL, since
# function/method parameters are always annotated via
# classes - therefore Sphinx expects a class
unparsed = ViewList(
unparsed = StringList(
[
f".. class:: {alias_name}",
"",
@ -169,7 +169,9 @@ class AliasAttrDocumenter(Directive):
# Add all the lines with 4 spaces behind, to consider all the
# documentation as a paragraph INSIDE the `.. class::` block
doc_lines = alias_doc.split("\n")
unparsed.extend(ViewList([f" {line}" for line in doc_lines]))
unparsed.extend(
StringList([f" {line}" for line in doc_lines])
)
# Parse the reST text into a fresh container
# https://www.sphinx-doc.org/en/master/extdev/markupapi.html#parsing-directive-content-as-rest
@ -191,7 +193,7 @@ class AliasAttrDocumenter(Directive):
# Using the `.. class::` directive is CRUCIAL, since
# function/method parameters are always annotated via
# classes - therefore Sphinx expects a class
unparsed = ViewList(
unparsed = StringList(
[
f".. class:: {name}",
"",
@ -218,7 +220,7 @@ class AliasAttrDocumenter(Directive):
# Let Sphinx Autosummary do its thing as always
# Add all the attribute names with 4 spaces behind, so that
# they're considered as INSIDE the `.. autosummary::` block
unparsed = ViewList(
unparsed = StringList(
[
".. autosummary::",
*(f" {attr}" for attr in module_attrs_list),