mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Add explicit return statement
This commit is contained in:
@ -423,8 +423,7 @@ class Text(SVGMobject):
|
|||||||
|
|
||||||
def get_part_by_text(self, word):
|
def get_part_by_text(self, word):
|
||||||
parts = self.get_parts_by_text(word)
|
parts = self.get_parts_by_text(word)
|
||||||
if len(parts) > 0:
|
return parts[0] if parts else None
|
||||||
return parts[0]
|
|
||||||
|
|
||||||
|
|
||||||
class MarkupText(Text):
|
class MarkupText(Text):
|
||||||
|
Reference in New Issue
Block a user