Fwd: Bug#978586: python3-pyqt5: There needs to be a py.typed file for pyi stubs to work
Dmitry Shachnev
mitya57 at ubuntu.com
Tue Dec 29 13:14:11 GMT 2020
Hi Phil!
Forwarding a bug report I got in Debian. Do you think such a file may
be added/created by sip tools?
----- Forwarded message from Salvo Tomaselli <tiposchi at tiscali.it> -----
Date: Mon, 28 Dec 2020 23:31:10 +0100
From: Salvo Tomaselli <tiposchi at tiscali.it>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Bug#978586: python3-pyqt5: There needs to be a py.typed file for pyi stubs to work
Package: python3-pyqt5
Version: 5.15.2+dfsg-1+b1
Severity: normal
Tags: upstream
Dear Maintainer,
as it is, the pyi stubs shipped by the package are useless because a typed.py
file needs to be present for mypy to take them into consideration.
This is already done by upstream in several other python packages.
So, this is an upstream bug, but since the fix is simply:
touch /usr/lib/python3/dist-packages/PyQt5/py.typed
it could be easy to make a temporary debian specific fix.
Best
----- End forwarded message -----
More information about the PyQt
mailing list