Commit 2adc218
Implement and enforce explicit re-export for cirq modules (#6722)
* Enable and enforce the `no_implicit_reexport` mypy rule for cirq modules
* Update `__init__.py` files so they explicitly re-export public symbols, but
do not re-export local symbols or submodules already in parent namespace
* Fix few instances of imports from incorrect modules
Fixes #6717
---------
Co-authored-by: Pavol Juhas <[email protected]>1 parent 9edb957 commit 2adc218
File tree
81 files changed
+2014
-1616
lines changed- cirq-aqt/cirq_aqt
- json_test_data
- cirq-core/cirq
- circuits
- contrib
- acquaintance
- strategies
- bayesian_network
- circuitdag
- graph_device
- noise_models
- paulistring
- qasm_import
- qcircuit
- quantum_volume
- quimb
- quirk
- routing
- svg
- devices
- experiments
- interop
- quirk
- cells
- ion
- linalg
- neutral_atoms
- ops
- protocols
- json_test_data
- qis
- sim
- clifford
- study
- testing
- _compat_test_data/module_a
- sub/subsub
- transformers
- analytical_decompositions
- gauge_compiling
- heuristic_decompositions
- routing
- target_gatesets
- value
- vis
- work
- cirq-google/cirq_google
- api
- v1
- v2
- devices
- engine
- experimental
- noise_models
- ops
- json_test_data
- line
- placement
- ops
- serialization
- study
- transformers
- analytical_decompositions
- target_gatesets
- workflow
- cirq-ionq/cirq_ionq
- json_test_data
- cirq-pasqal/cirq_pasqal
- json_test_data
- cirq-rigetti/cirq_rigetti
- json_test_data
- cirq-web/cirq_web
- bloch_sphere
- circuits
- dev_tools
- conf
- docs
- notebooks
- requirements
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
81 files changed
+2014
-1616
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
0 commit comments