Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1383

Hints/stubs should be explicit about returning None

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.15.1
    • 5.15.3
    • PySide
    • None
    • 92a6f4b71770e0a6e63c8210992ba81448657373 (pyside/pyside-setup/dev)

      With disallow_untyped_calls = True set for mypy I get various reports about untyped methods. For example, QWidget.show().

      qtrio/examples/emissions.py:98: error: Call to untyped function "show" in typed context
      

      Which is stubbed as follows.

      def show(self): ...
      

      It would be nice if these were explicitly hinted as returning None.

      def show(self) -> None: ...
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ctismer Christian Tismer
            altendky Kyle Altendorf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes