from PySide2.QtCore import QRect
from PySide2.QtGui import QPixmap

a = QPixmap()

reveal_type(a.depth())
reveal_type(a.copy(rect=QRect()))
reveal_type(a.copy(1, 2, 3, 4))
reveal_type(a.copy())
