Skip to content

Conversation

@harshil21
Copy link
Member

@harshil21 harshil21 commented Oct 1, 2022

Closes #3146

I went with the simple boolean approach instead of specifying a number for the recursion.
Also based on the TO-overhaul branch since I had to make sure these changes work with that too. (Merge after #3233)

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

@harshil21 harshil21 added this to the v20.0a5 milestone Oct 1, 2022
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a 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 :)

@Bibo-Joshi Bibo-Joshi modified the milestones: v20.0a5, v20.0 Oct 6, 2022
Base automatically changed from TO-overhaul to master October 7, 2022 09:51
And fix _get_attrs for non-slotted classes
make and use copy of data, since data increases length every iteration. Use generator to get all slots, and use hasattr() instead of try-except
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

two merge questions :)

Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
@Bibo-Joshi Bibo-Joshi merged commit 24d390e into master Oct 19, 2022
@Bibo-Joshi Bibo-Joshi deleted the to_dict-recursion branch October 19, 2022 08:32
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2022
@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 enhancement pr description: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] TelegramObject.to_dict(recursion=value)

3 participants