Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved typehints for types.py #2351 #2353

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

coder2020official
Copy link
Collaborator

@@ -4209,6 +4214,7 @@ def to_dict(self):
json_dict['is_flexible'] = self.is_flexible
return json_dict

InputMessageContent = Union[InputTextMessageContent, InputLocationMessageContent, InputVenueMessageContent, InputContactMessageContent, InputInvoiceMessageContent]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One notable change:
Since InputXXXMessageContent do not have a common class, I decided to declare this

@Badiboy
Copy link
Collaborator

Badiboy commented Aug 4, 2024

@coder2020official I cannot check it all ))) As far as hints are not significant, let's merge and fix later if any.

@Badiboy Badiboy merged commit 1abd6fd into eternnoir:master Aug 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants