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

Improve mypy compatibility with our python stubs (pyi)

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • Some future version
    • None
    • PySide
    • None

      The python stubs files (pyi files) contain type-hinting information of normal Python modules. They are annotations that specify the data types of function arguments and return types.

      When generating the first .pyi files, the existence of the MyPy module was mostly ignored. We tried to follow the specification in PEP-484 and modelled the annotations close to the specification.

      Meanwhile, the specification was much extended and contains also constants, variables etc., and quite a number of other related PEPs has evolved. PyPy and other tools were improved, substantially.

      We want to fully support MyPy with all extended features and correctness as good as possible. This activity will need a number of check-ins until that goal is reached.

        For Gerrit Dashboard: PYSIDE-1675
        # Subject Branch Project Status CR V

            ctismer Christian Tismer
            crmaurei Cristian Maureira-Fredes
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: