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

DepreciationWarning in toolbar causes AttributeError #530

Open
raphaelquast opened this issue Jun 29, 2023 · 0 comments
Open

DepreciationWarning in toolbar causes AttributeError #530

raphaelquast opened this issue Jun 29, 2023 · 0 comments

Comments

@raphaelquast
Copy link

Describe the issue

Accessing toolbar properties causes AttributeError: 'super' object has no attribute '__getattr__'

image

The problematic lines are here:

def __getattr__(self, name):
if name in ['orientation', 'collapsed']:
warn(
"The Toolbar properties 'orientation' and 'collapsed' are deprecated."
"Accessing them will raise an error in a coming ipympl release",
DeprecationWarning,
)
return super().__getattr__(name)

This is most probably caused by the mixin-style classes ... a explanation (and a possible solution) might be this:

https://stackoverflow.com/a/28864246/9703451

Versions

 3.11.3 | packaged by conda-forge | (main, Apr  6 2023, 08:50:54) [MSC v.1934 64 bit (AMD64)]
ipympl version: 0.9.3
raphaelquast added a commit to raphaelquast/EOmaps that referenced this issue Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant