From b3c43a0da28f1383b1cf8c1beb607474aac7521b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 22:36:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- qtpy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qtpy/__init__.py b/qtpy/__init__.py index 4375f9ff..8633c35d 100644 --- a/qtpy/__init__.py +++ b/qtpy/__init__.py @@ -278,10 +278,11 @@ def __init__(self, *, missing_package=None, **superclass_kwargs): if API in PYSIDE6_API: try: from PySide6 import __version__ as PYSIDE_VERSION # analysis:ignore + if PYSIDE_VERSION == "6.8.0": print( "A known critical bug in PySide6 6.8.0 will cause your application to crash " - "see https://github.com/spyder-ide/qtpy/issues/494" + "see https://github.com/spyder-ide/qtpy/issues/494", ) from PySide6.QtCore import __version__ as QT_VERSION # analysis:ignore