Skip to content

Commit c7fa8fc

Browse files
authored
Fix docs for VDict (#531)
* Add blank line after Normal usage * Run black
1 parent d8dab78 commit c7fa8fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

manim/mobject/types/vectorized_mobject.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ def add(self, mapping_or_iterable):
973973
Examples
974974
--------
975975
Normal usage::
976+
976977
square_obj = Square()
977978
my_dict.add([('s', square_obj)])
978979
"""
@@ -1000,6 +1001,7 @@ def remove(self, key):
10001001
Examples
10011002
--------
10021003
Normal usage::
1004+
10031005
my_dict.remove('square')
10041006
"""
10051007
if key not in self.submob_dict:
@@ -1024,6 +1026,7 @@ def __getitem__(self, key):
10241026
Examples
10251027
--------
10261028
Normal usage::
1029+
10271030
self.play(ShowCreation(my_dict['s']))
10281031
"""
10291032
submob = self.submob_dict[key]
@@ -1046,6 +1049,7 @@ def __setitem__(self, key, value):
10461049
Examples
10471050
--------
10481051
Normal usage::
1052+
10491053
square_obj = Square()
10501054
my_dict['sq'] = square_obj
10511055
"""
@@ -1064,6 +1068,7 @@ def get_all_submobjects(self):
10641068
Examples
10651069
--------
10661070
Normal usage::
1071+
10671072
for submob in my_dict.get_all_submobjects():
10681073
self.play(ShowCreation(submob))
10691074
"""
@@ -1093,6 +1098,7 @@ def add_key_value_pair(self, key, value):
10931098
Examples
10941099
--------
10951100
Normal usage::
1101+
10961102
square_obj = Square()
10971103
self.add_key_value_pair('s', square_obj)
10981104

0 commit comments

Comments
 (0)