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

SyntaxError: f-string: unmatched '['

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.3
    • QtAsyncio
    • None
    • Python 3.9. Probably is a problem in Python 3.10 and 3.11 as well, since re-using the same quotation marks is a 3.12 feature.

    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

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change