Issues separating logic, widget and main classes

The logic class doesn’t actually use the widget, I had included it in the imports since I thought that may avoid the error. I have since removed it. I’ve added the widget class back to the main module file and kept the logic class in its own file based on this thread stating that the widget must be in the main module file, and this works fine. Another thread says that the widget can be kept in its own file, but I am having issues recreating it the same way.

Is there a way to keep the widget separate from the main module class, and if so, how can I correctly point to the right locations so the module class is aware of the widget?