Third-party stubs: fix several fictitious type aliases (#7958)

This commit is contained in:
Alex Waygood
2022-05-26 14:26:26 +01:00
committed by GitHub
parent 597be79b18
commit fa636bc044
15 changed files with 69 additions and 73 deletions

View File

@@ -1,4 +1,6 @@
PIL.FpxImagePlugin
PIL.ImageQt.ImageQt
PIL.ImageQt.QImage # Does exist at runtime usually, but stubtest can't see it
PIL.ImageQt.QPixmap # Does exist at runtime usually, but stubtest can't see it
PIL.MicImagePlugin
PIL.WmfImagePlugin.WmfHandler

View File

@@ -1,10 +1,10 @@
from typing import Any
from typing_extensions import Literal
from typing_extensions import Literal, TypeAlias
from .Image import Image
QImage = Any # imported from either of {PyQt6,PySide6,PyQt5,PySide2}.QtGui
QPixmap = Any
QImage: TypeAlias = Any # imported from either of {PyQt6,PySide6,PyQt5,PySide2}.QtGui
QPixmap: TypeAlias = Any
qt_versions: Any
qt_is_installed: bool