-
Notifications
You must be signed in to change notification settings - Fork 127
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
AttributeError: 'function' object has no attribute 'expanded' #484
Comments
I tried excluding |
@zvi-quantivly what is the driver behind wanting to embed the |
Yes. It's a little difficult to explain briefly, but I am working on a Django project that needs to be able to run user provided code as a “plugin”. Each plugin is written as a small Python package that depends on a common SDK and exposes a subclass of some base E.g., if we consider the example above, |
It looks like the source of the problem is that setting method attributes on bound methods is disallowed [ref]. This happens in the custom |
I have a requirement to create my Dash application within the context of a class. I tried following the example here to have something like:
However, this raises:
Since
self.app
is aDjangoDash
instance, so far, I haven't managed to figure out whyexpanded
isn't set. Any help resolving this would be greatly appreciated.EDIT: It seems it is caused by the inclusion of
self
(i.e., static methods are not effected).The text was updated successfully, but these errors were encountered: