Skip to content
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

Add ConnectorTable.extend() method #1021

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

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Aug 2, 2024

This method allows ConnectorTable consumers to extend the class with an additional connector (or, if they chain calls, multiple connectors). The new connector is written into the new subclass as a part of its _connectors tuple and as an attribute.

The base ConnectorTable class is left unmodified, meaning that callers who extend the table cannot conflict.


This draft PR is opened for discussion. The main target use-case in question is the GCS CLI.


📚 Documentation preview 📚: https://globus-sdk-python--1021.org.readthedocs.build/en/1021/

This method allows ConnectorTable consumers to extend the class with
an additional connector (or, if they chain calls, multiple connectors).
The new connector is written into the new subclass as a part of its
`_connectors` tuple and as an attribute.

The base ConnectorTable class is left unmodified, meaning that callers
who extend the table cannot conflict.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant