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

CommandLine is not exposed / Documentation not correct #3

Closed
RoelAdriaans opened this issue Oct 12, 2020 · 2 comments · Fixed by #4
Closed

CommandLine is not exposed / Documentation not correct #3

RoelAdriaans opened this issue Oct 12, 2020 · 2 comments · Fixed by #4
Assignees
Labels
bug Something isn't working

Comments

@RoelAdriaans
Copy link

RoelAdriaans commented Oct 12, 2020

In the init.py the CommandLine loader and ClassyConf class are not exposed, making the CommandLine class not visible.

The documentation from the commandline example requires this https://classyconf.readthedocs.io/en/latest/loaders.html#commandline

Error:

>>> from classyconf import ClassyConf, Value, NOT_SET, CommandLine
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'ClassyConf' from 'classyconf' (/home/roel/python/lib/python3.9/site-packages/classyconf/__init__.py)

Tested with ClassyConf version 0.3.0

@hernantz hernantz added the bug Something isn't working label Oct 12, 2020
@hernantz hernantz self-assigned this Oct 12, 2020
@hernantz
Copy link
Owner

Thanks for reporting this, I've issued a new relase 0.4.0 with the updated docs and exposing CommandLine

@RoelAdriaans
Copy link
Author

Thanks for the quick updates!
I will check it out tonight :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants