Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve mypy issues in 'qml_utils.py'
Get rid of uwsift/control/qml_utils.py:87: error: Name "layerModel" already defined on line 83 [no-redef] uwsift/control/qml_utils.py:96: error: Name "convFuncModel" already defined on line 92 [no-redef] uwsift/control/qml_utils.py:132: error: Name "layerToDisplay" already defined on line 127 [no-redef] uwsift/control/qml_utils.py:144: error: Name "dateToDisplay" already defined on line 137 [no-redef] uwsift/control/qml_utils.py:221: error: Property "timestamps" defined in "TimebaseModel" is read-only [misc] uwsift/control/qml_utils.py:222: error: Cannot assign to a method [assignment] uwsift/control/qml_utils.py:222: error: Incompatible types in assignment (expression has type "None", variable has type "Callable[..., Any]") [assignment] uwsift/control/qml_utils.py:243: error: Name "currentTimestamp" already defined on line 239 [no-redef] uwsift/control/qml_utils.py:261: error: Name "timestamps" already defined on line 248 [no-redef] uwsift/control/qml_utils.py:261: error: "Callable[[TimebaseModel], Any]" has no attribute "setter" [attr-defined] by - ignoring false positives for pyqtProperty setters, see python/mypy#9911 - Avoiding to initialize variable with None which can also be initialized with something more useful right away.
- Loading branch information