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

Export package API from __init__.py and hide submodules #58

Merged
merged 5 commits into from
Feb 19, 2022

Conversation

bamarsha
Copy link
Contributor

Based on discussion from #56, hide each package's submodules and re-export members from __init__.py so that imports are simpler. Also closes #29 by adding __all__ to PyQIR parser.

Copy link
Contributor

@cgranade cgranade left a comment

Choose a reason for hiding this comment

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

LGTM! Do the API docs need to be adapted as part of this change?

pyqir-tests/tests/test_if.py Show resolved Hide resolved
pyqir-tests/tests/test_teleport.py Show resolved Hide resolved
@bamarsha
Copy link
Contributor Author

@cgranade I updated the API reference docs.

@bamarsha bamarsha merged commit 1e3ac7c into main Feb 19, 2022
@bamarsha bamarsha deleted the samarsha/flat branch February 19, 2022 00:27
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.

pyqir_parser exposing too many things on import
2 participants