-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add dunder method docstring #3929
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the nice PR! I left some comments below :)
One (unrelated) thing that I noticed is that Bot.__eq__
doesn't comply with the documentation of TelegramObject.__eq__
, i.e. it doesn't fall back to super().__eq__
. Since so for Bot.__eq__
is not explicitly documented, it might be wise to adjust this before adding documentation would make this a (very minor) breaking change. What do you think?
cc @Poolitzer @harshil21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates! Just two smaller comments below :) What dou you think about #3929 (review) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since so for Bot.eq is not explicitly documented, it might be wise to adjust this before adding documentation would make this a (very minor) breaking change. What do you think?
I agree, should be updated, though we will need to add an _id_attrs
for Bot
as well, what should that include?
Also telegram.ext.updater.rst
still has the :special-members:
in it, should be deleted.
Also I believe that a side effect of adding the special-members derivative in the conf.py
file was that now we have all these extra documented methods (see BaseFilter
docs):
I see that there is also |
Closes #3926