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

SyntaxError: f-string: unmatched '['

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.1, 6.10.0
    • 6.9.0, 6.8.3
    • QtAsyncio
    • None
    • Python 3.9. This is a problem in Python 3.10 and 3.11 as well, since re-using the same quotation marks is a 3.12 feature.
    • 59e38be16 (dev), f642b7a79 (6.9)

    Description

      When using PySide6 with Python 3.9 and import QtAsyncio, I get the following error:

      ....py:1:
          from PySide6 import QtAsyncio, QtWidgets
      .venv/lib/python3.9/site-packages/PySide6/QtAsyncio/__init__.py:5: in <module>
          from .events import (
      E     File ".venv/lib/python3.9/site-packages/PySide6/QtAsyncio/events.py", line 601
      E       print(f"{context["message"]} from task {context["task"]._name},"+
      E                         ^
      E   SyntaxError: f-string: unmatched '[' 

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              berendkleinhaneveld Berend Klein Haneveld
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change