Skip to content
  • Yuya Nishihara's avatar
    typing: remove short circuit from cmdui.InteractiveUiHandler._parentWidget() · 26b251d3a086
    Yuya Nishihara authored
    Also adds some type annotation. This suppresses the following false positives:
    
      line 343, in _parentWidget: No attribute 'isWidgetType' on
      _weakref.ReferenceType[nothing] [attribute-error]
        In Optional[Union[Any, _weakref.ReferenceType[nothing]]]
      line 344, in _parentWidget: No attribute 'parent' on
      _weakref.ReferenceType[nothing] [attribute-error]
        In Optional[Union[Any, _weakref.ReferenceType[nothing]]]
    26b251d3a086