Skip to content

[#709] preserve options in chaining obj.metadata(opt1=val1)(opt2=val2) #716

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

d-w-moore
Copy link
Collaborator

In other words, setting opt2 = val2 does not reset opt1 back to its default value.

…val2)

In other words, setting opt2 = val2 does not reset opt1 back to its default value.
Copy link
Contributor

@korydraughn korydraughn left a comment

Choose a reason for hiding this comment

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

Looks good overall.

Comment on lines +815 to +817
m4 = m3(admin = False)
self.assertEqual(m4._manager._use_ts, True)
self.assertEqual(m4._manager.get_api_keywords().get(kw.ADMIN_KW), None)
Copy link
Contributor

Choose a reason for hiding this comment

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

I take it the following assertion is left out intentionally?

self.assertEqual(m4._manager._admin, False)

Does L817 cover it somehow? Seems like the ADMIN_KW is None because of m3(admin = False). Is that true? Are they related?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can put that in. Not sure why it got left out.

@d-w-moore d-w-moore changed the title [_709] preserve options in chaining obj.metadata(opt1=val1)(opt2=val2) [#709] preserve options in chaining obj.metadata(opt1=val1)(opt2=val2) May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants