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

Remove `from __future__ import annotations` from type stubs

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.10.0, 6.9.3
    • 6.x
    • Type hints
    • None
    • All
    • d33bdcd00 (dev), 9554a0eab (6.9), 1eda086b2 (tqtc/lts-6.8)

      In PySide6 <=6.9.0, `from _future_ import annotations` was added before the docstrings in the type stubs, causing the docstring to not show up in editors. This was finally fixed in 6.9.1 (I was about to open an issue before noticing that ^^).

      But, `from _future_ import annotations` does nothing in type stubs (checkers in stubs already assume lazy / forward and circular references are possible). I simply wouldn't bother including it in the generation it at all.

      Refs:

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

            cinucen Ece Cinucen
            avasam Samuel Therrien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes