May-18-2022, 03:30 PM
The class is defined in foo.py. So you'd import from that file whenever you need to reference it.
It appears you do that in invest.py. But in wrap.py you refer to Foo without an import. One would be necessary there as well (although the code in wrap.py doesn't seem to call the class properly. Looks like you're overwriting the method rather than calling it).
It appears you do that in invest.py. But in wrap.py you refer to Foo without an import. One would be necessary there as well (although the code in wrap.py doesn't seem to call the class properly. Looks like you're overwriting the method rather than calling it).