Skip to content

Commit 8dcfdc5

Browse files
committed
any_xxx typehints added
1 parent 2d41d2a commit 8dcfdc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

telebot/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,11 +1619,11 @@ def user_shared(self):
16191619
return self.users_shared
16201620

16211621
@property
1622-
def any_text(self):
1622+
def any_text(self) -> Optional[str]:
16231623
return self.caption if (self.caption is not None) else self.text
16241624

16251625
@property
1626-
def any_entities(self):
1626+
def any_entities(self) -> Optional[List[MessageEntity]]:
16271627
return self.caption_entities if (self.caption_entities is not None) else self.entities
16281628

16291629

0 commit comments

Comments
 (0)