mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add explicit return statement
This commit is contained in:
parent
de46df78dc
commit
2a0709664d
1 changed files with 1 additions and 2 deletions
|
@ -423,8 +423,7 @@ class Text(SVGMobject):
|
|||
|
||||
def get_part_by_text(self, word):
|
||||
parts = self.get_parts_by_text(word)
|
||||
if len(parts) > 0:
|
||||
return parts[0]
|
||||
return parts[0] if parts else None
|
||||
|
||||
|
||||
class MarkupText(Text):
|
||||
|
|
Loading…
Add table
Reference in a new issue