Fix pre-commit linting (#3877)

This commit is contained in:
adeshpande 2024-07-21 09:03:31 -04:00 committed by GitHub
commit fa65b488b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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]:

View file

@ -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