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

Dynamic models property settings redesign #2036

Open
Przemek625 opened this issue Jan 19, 2023 · 0 comments
Open

Dynamic models property settings redesign #2036

Przemek625 opened this issue Jan 19, 2023 · 0 comments

Comments

@Przemek625
Copy link

Przemek625 commented Jan 19, 2023

When I was reading the code https://github.com/tweepy/tweepy/blob/master/tweepy/models.py#L315 one question came to my mind about the way the models where designed.

Would not it be better do use dataclasses in here with some default values? When working with the Status model it is not obvious what are the properties of Status object without checking the twitter documentation: https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/tweet

It would be good to give some hints to the user about what fields he can expect in a model.

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

No branches or pull requests

1 participant