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

multiple decorated class methods point to the same object #409

Closed
tlambert03 opened this issue May 19, 2022 · 1 comment · Fixed by #443
Closed

multiple decorated class methods point to the same object #409

tlambert03 opened this issue May 19, 2022 · 1 comment · Fixed by #443
Labels
bug Something isn't working

Comments

@tlambert03
Copy link
Member

Describe the bug

class T:
    @magicgui
    def testB(self, b: str = 'b'):
        print(b)

    @magicgui
    def testA(self, a: str = 'a'):
        print(a)

t = T()
print(t.testA is t.testB)  # True
@tlambert03 tlambert03 added the bug Something isn't working label May 19, 2022
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/multiple-qwidgets-in-a-napari-plugin/67276/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants