Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add _create_attrs & _update_attrs to RESTManager#1371

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/create_attrs_1
Mar 14, 2021
Merged

chore: add _create_attrs & _update_attrs to RESTManager#1371

nejch merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/create_attrs_1
Mar 14, 2021

Conversation

@JohnVillalovos
Copy link
Member

Add the attributes: _create_attrs and _update_attrs to the RESTManager
class. This is so that we stop using getattr() if we don't need to.

This also helps with type-hints being available for these attributes.

Add the attributes: _create_attrs and _update_attrs to the RESTManagerclass. This is so that we stop using getattr() if we don't need to.This also helps with type-hints being available for these attributes.
Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

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

Hey@JohnVillalovos sorry for the delay, thanks a lot!

I really liked the namedtuple approach in your earlier PR#1366, is the idea to introduce it back in a follow-up so this can be a smaller change for now?

It would take out some of the mystery in all those attributes for new contributors I think.

@JohnVillalovos
Copy link
MemberAuthor

Hey@JohnVillalovos sorry for the delay, thanks a lot!

No worries! Thanks for reviewing 😀

I really liked the namedtuple approach in your earlier PR#1366, is the idea to introduce it back in a follow-up so this can be a smaller change for now?

You read my mind! I thought let's get the small change in first and wait on the giant change.

It would take out some of the mystery in all those attributes for new contributors I think.

Agreed. It took me awhile to figure out what they were for. I think with the NamedTuple it should be clearer.

Thanks again.

@JohnVillalovos
Copy link
MemberAuthor

@nejch Once this is merged I will work on the follow-up patch to use namedtuple.

@nejchnejch merged commit8603248 intopython-gitlab:masterMar 14, 2021
@JohnVillalovosJohnVillalovos deleted the jlvillal/create_attrs_1 branchMarch 14, 2021 17:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nejchnejchnejch approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JohnVillalovos@nejch

[8]ページ先頭

©2009-2025 Movatter.jp