Skip to content

Mypy reports error "Cannot assign to a method" when using tkinter report_callback_exception #1767

@jcrmatos

Description

@jcrmatos

Hello,

When mypy sees tkinter exception handling like this
root.report_callback_exception = mainloop_exc_handler
where mainloop_exc_handler is a function or method to handle exceptions under tkinter mainloop, it reports the error "Cannot assign to a method".

I'm using mypy 0.521 with Python 3.5.4 32b on a Windows 7 SP1 x64.

I was told to open the issue here from the mypy github.

Best regards,

JM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions