Add explicit return statement

This commit is contained in:
YishiMichael
2022-03-17 11:33:53 +08:00
committed by GitHub
parent de46df78dc
commit 2a0709664d

View File

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