mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Fix all tests in test_vectorized_mobject.py and allow iterables in OpenGLVGroup
This commit is contained in:
commit
98967c9fe5
1 changed files with 4 additions and 1 deletions
|
|
@ -1864,13 +1864,16 @@ class OpenGLVDict(OpenGLVMobject):
|
|||
mapping_or_iterable: (
|
||||
Mapping[Hashable, OpenGLVMobject]
|
||||
| Iterable[tuple[Hashable, OpenGLVMobject]]
|
||||
) = {},
|
||||
| None
|
||||
) = None,
|
||||
show_keys: bool = False,
|
||||
**kwargs: Any,
|
||||
) -> None:
|
||||
super().__init__(**kwargs)
|
||||
self.show_keys = show_keys
|
||||
self.submob_dict: Mapping[Hashable, OpenGLVMobject] = {}
|
||||
if mapping_or_iterable is None:
|
||||
mapping_or_iterable = {}
|
||||
self.add(mapping_or_iterable)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue