Closed Betty-J closed 1 year ago
Hey 👋 Thanks for reaching out!
Did you install the package in editable mode (pip install -e .
)? You can view the installation section here
I wasn't able to reproduce it locally using VSCode, even with a blank conda env & uninstalled package..
Generally speaking, it can be solved using forward passing. For this example the following should work:
class NDict(dict):
"""
(Lazy) N(ested)Dict - wraps a python dict, and allows to access "nested" elements via '.' separated key desc ...
"""
def __init__(
self, dict_like: Union[dict, tuple, types.GeneratorType, 'NDict', None] = None, already_flat: bool = False
):
@weiddyaqhhya , any chance you are using python version < 3.7?
@weiddyaqhhya , any chance you are using python version < 3.7?
Hi,you are right, the python version I am using is 3.6.13
Hey 👋 Thanks for reaching out!
Did you install the package in editable mode (
pip install -e .
)? You can view the installation section here I wasn't able to reproduce it locally using VSCode, even with a blank conda env & uninstalled package..Generally speaking, it can be solved using forward passing. For this example the following should work:
class NDict(dict): """ (Lazy) N(ested)Dict - wraps a python dict, and allows to access "nested" elements via '.' separated key desc ... """ def __init__( self, dict_like: Union[dict, tuple, types.GeneratorType, 'NDict', None] = None, already_flat: bool = False ):
hi, I installed using pypi pip install fuse-med-ml[all], I will try your solution, thanks
@weiddyaqhhya There's no need for the fix I've mentioned. Update your python version to 3.9 (we don't support <3.7) and try again. See here
@mosheraboh nice catch!! :)