There isn’t a way (as far as I know) to automatically inherit from the outer scope, but you might find some of the answers from here helpful: Avoid repeating the same `using` line for enclosed modules
rdeits
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to use multiple levels of module? | 5 | 2087 | September 15, 2017 | |
| Use constant variable from outer module in inner module | 3 | 542 | October 9, 2020 | |
| Having a submodule import a top-level module | 3 | 690 | November 2, 2020 | |
| Submodules accessing global variables in Parent module | 4 | 1755 | April 28, 2022 | |
| Importing a package to all the submodules of a module | 6 | 1712 | November 20, 2017 |