Skip to content

Conversation

Bibo-Joshi
Copy link
Member

@Bibo-Joshi Bibo-Joshi commented Sep 11, 2022

Another part of #2698. As per #2698 (comment) doesn't add a "pprint" variant yet. IMO we can add this if we/users actually see a need for that :)

Note that once #3233 is merged, this will also include api_kwargs in the representation. IMO that's desirable. Once could however do a special case and exclude that if it's an empty dictionary. edit: I did that

Checklist for PRs

  • Added .. versionadded:: version, .. versionchanged:: version or .. deprecated:: version to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)
  • Created new or adapted existing unit tests
  • Documented code changes according to the CSI standard
  • Added myself alphabetically to AUTHORS.rst (optional)
  • Added new classes & modules to the docs and all suitable __all__ s

@Bibo-Joshi Bibo-Joshi added the 🛠 refactor change type: refactor label Sep 11, 2022
@Bibo-Joshi Bibo-Joshi added this to the v20.0a5 milestone Sep 11, 2022
@harshil21 harshil21 added the 📋 pending-review work status: pending-review label Sep 24, 2022
@harshil21 harshil21 mentioned this pull request Sep 24, 2022
5 tasks
# Conflicts:
#	telegram/_telegramobject.py
#	tests/test_telegramobject.py
@Bibo-Joshi Bibo-Joshi requested review from harshil21 and Poolitzer and removed request for Poolitzer October 20, 2022 17:08
Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

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

You formulated it as a question if we want to drop empty api_kwargs and if I read this correctly you just decided to go ahead with this. I like it, and the rest of the code change!

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

btw, should we include the documentation of TGObject's dunder methods? I think we should since it makes it more clear what we can do with the object as a whole.

@harshil21 harshil21 removed the 📋 pending-review work status: pending-review label Oct 26, 2022
Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

LGTM

@Bibo-Joshi Bibo-Joshi merged commit f68663a into master Oct 30, 2022
@Bibo-Joshi Bibo-Joshi deleted the TO-repr branch October 30, 2022 10:21
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🛠 refactor change type: refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants