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

Uncomment enum values in type stubs

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.10.0, 6.9.3, 6.8.5
    • 6.8, 6.9
    • Type hints
    • None
    • 45b9a7de8 (dev), 0a0b59d82 (6.9), 822397986 (tqtc/lts-6.8), 9036d8c2d (tqtc/dev), 436bc5e3c (tqtc/6.10), dd9ac00b8 (tqtc/6.9), 1703555f0 (tqtc/6.8)

      Since ~January 2024, it is part of the typing spec that Enums in stubs can specify their exact values and type-checkers can use those.
      The related spec section:[ https://typing.python.org/en/latest/spec/enums.html#defining-members|https://typing.python.org/en/latest/spec/enums.html#defining-members] 

      Refs for when this was added:

      So instead of

      You can now have

        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:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: