mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
Third-party stubs: fix several fictitious type aliases (#7958)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user