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

[gui] [refactor] Avoid exposing different APIs with different GGUI_AVAILABLE values #4329

Merged
merged 4 commits into from
Feb 18, 2022

Conversation

strongoier
Copy link
Contributor

Related issue = #3782

This PR replaces inheritance with composition to avoid inheriting from a class only available when GGUI is available. Now APIs exposed from the ui subpackage will not depend on whether GGUI_AVAILABLE=True. Meanwhile, the error checking for using GGUI when GGUI_AVAILABLE=False remains the same.

@netlify
Copy link

netlify bot commented Feb 18, 2022

✔️ Deploy Preview for docsite-preview ready!

🔨 Explore the source changes: 8adbc0d

🔍 Inspect the deploy log: https://app.netlify.com/sites/docsite-preview/deploys/620f6860e8f93600084b39db

😎 Browse the preview: https://deploy-preview-4329--docsite-preview.netlify.app

@taichi-gardener taichi-gardener added this to To do in GGUI Feb 18, 2022
@strongoier
Copy link
Contributor Author

/format

Copy link
Collaborator

@AmesingFlank AmesingFlank left a comment

Choose a reason for hiding this comment

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

thanks!

@strongoier strongoier merged commit 66161d5 into taichi-dev:master Feb 18, 2022
GGUI automation moved this from To do to Done Feb 18, 2022
@strongoier strongoier deleted the ui-import branch February 18, 2022 11:51
Tiny-Box pushed a commit to Tiny-Box/taichi that referenced this pull request Feb 21, 2022
…AILABLE values (taichi-dev#4329)

* [gui] [refactor] Avoid exposing different APIs depending on GGUI_AVAILABLE

* Make pylint happy

* Fix

* Auto Format

Co-authored-by: Taichi Gardener <taichigardener@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
GGUI
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants