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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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