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: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8, 6.9
    • Type hints
    • None

      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

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

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

              Created:
              Updated:

                There is 1 open Gerrit change