diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cd489a..814b667 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: os: [ubuntu, windows, macos-x86_64, macos-arm64] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] qt-version: ["pyside2", "pyside6", "pyqt5", "pyqt6"] include: - os: ubuntu @@ -43,6 +43,8 @@ jobs: qt-version: pyside2 - python-version: "3.13" qt-version: pyside2 + - python-version: "3.14" + qt-version: pyside2 # pyside6 and pyqt6 require python >=3.9 - python-version: "3.8" qt-version: pyside6 diff --git a/src/qasync/__init__.py b/src/qasync/__init__.py index d35a5ee..c972a25 100644 --- a/src/qasync/__init__.py +++ b/src/qasync/__init__.py @@ -515,7 +515,7 @@ def close(self): def call_later(self, delay, callback, *args, context=None): """Register callback to be invoked after a certain delay.""" - if asyncio.iscoroutinefunction(callback): + if inspect.iscoroutinefunction(callback): raise TypeError("coroutines cannot be used with call_later") if not callable(callback): raise TypeError(