mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Fix pre-commit linting (#3877)
This commit is contained in:
parent
a03e73c822
commit
fa65b488b0
2 changed files with 2 additions and 2 deletions
|
|
@ -323,7 +323,7 @@ class ManimConfig(MutableMapping):
|
|||
}
|
||||
|
||||
def __init__(self) -> None:
|
||||
self._d: dict[str, Any | None] = {k: None for k in self._OPTS}
|
||||
self._d: dict[str, Any | None] = dict.fromkeys(self._OPTS)
|
||||
|
||||
# behave like a dict
|
||||
def __iter__(self) -> Iterator[str]:
|
||||
|
|
|
|||
|
|
@ -826,7 +826,7 @@ class GenericGraph(VMobject, metaclass=ConvertToOpenGL):
|
|||
labels = {v: labels for v in vertices}
|
||||
else:
|
||||
assert isinstance(labels, dict)
|
||||
base_labels = {v: False for v in vertices}
|
||||
base_labels = dict.fromkeys(vertices, False)
|
||||
base_labels.update(labels)
|
||||
labels = base_labels
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue