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

Syntax error (unexpected indent) in Shiboken.pyi

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.6.0, 6.5.3
    • 6.5.3
    • Type hints
    • None
    • Windows
    • 61589ef35 (dev), b8f5b939c (6.6), 71a80f526 (6.5), 2f27264a7 (6.5.3), 158cbf33e (tqtc/6.5.3)

      I installed PySide6-Essentials and shiboken6 from https://download.qt.io/snapshots/ci/pyside/6.5.3/7b2a79caa1f0cb87cf1d217811c25bcff724173b/split_wheels/, and on running mypy I get

      [...]\Shiboken.pyi:22: error: unexpected indent  [syntax]

       

      In fact, that file looks like this around line 22:

       

      class VoidPtr(object): ...
          def __init__(self, value: int) -> None: ...
      

      (The first ellipsis should be removed.)

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

            kleint Friedemann Kleint
            bers bers bers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes