`click` is actually required when using `typed-settings[attrs]`
Hi,
I think because of these imports, you actually need click installed to use the secret
features.
In [1]: import typed_settings
In [2]: import attrs
In [3]: import click
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[3], line 1
----> 1 import click
ModuleNotFoundError: No module named 'click'
In [4]: typed_settings.secret
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 1
----> 1 typed_settings.secret
File ~/Dev/Dataexp/opinum-client/.venv/lib/python3.11/site-packages/typed_settings/__init__.py:38, in __getattr__(name)
33 # This method is only invoked if either
34 # - attrs/click is not installed or
35 # - an attribute that actually doesn't exist
36 # is requested.
37 if name in _attrs_imports:
---> 38 raise ModuleNotFoundError(
39 "Module 'attrs' not installed. Please run "
40 "'python -m pip install -U typed-settings[attrs]'"
41 )
43 if name in _click_imports:
44 raise ModuleNotFoundError(
45 "Module 'click' not installed. Please run "
46 "'python -m pip install -U typed-settings[click]'"
47 )
ModuleNotFoundError: Module 'attrs' not installed. Please run 'python -m pip install -U typed-settings[attrs]'