Browse Source

Upgrade mypy to V0.650

- fix a number of newly reported issues with PyQt5 stubs.
- add empty stub files for all 3rdparty libs without stubs.
- remove local copy of protobuf stubs, the version from the official typeshed is now good enough.
looper
Ben Niemann 4 years ago
parent
commit
bc8cc6bf71
  1. 94
      3rdparty/typeshed/PyQt5/QtCore.pyi
  2. 182
      3rdparty/typeshed/PyQt5/QtGui.pyi
  3. 2
      3rdparty/typeshed/PyQt5/QtSvg.pyi
  4. 24
      3rdparty/typeshed/PyQt5/QtWidgets.pyi
  5. 2
      3rdparty/typeshed/async_generator.pyi
  6. 2
      3rdparty/typeshed/capnp.pyi
  7. 2
      3rdparty/typeshed/eventfd.pyi
  8. 2
      3rdparty/typeshed/gbulb.pyi
  9. 0
      3rdparty/typeshed/google/__init__.pyi
  10. 1
      3rdparty/typeshed/google/protobuf/__init__.pyi
  11. 161
      3rdparty/typeshed/google/protobuf/descriptor.pyi
  12. 2
      3rdparty/typeshed/google/protobuf/descriptor_pb2.pyi
  13. 18
      3rdparty/typeshed/google/protobuf/descriptor_pool.pyi
  14. 0
      3rdparty/typeshed/google/protobuf/internal/__init__.pyi
  15. 35
      3rdparty/typeshed/google/protobuf/internal/containers.pyi
  16. 30
      3rdparty/typeshed/google/protobuf/internal/decoder.pyi
  17. 34
      3rdparty/typeshed/google/protobuf/internal/encoder.pyi
  18. 11
      3rdparty/typeshed/google/protobuf/internal/enum_type_wrapper.pyi
  19. 5
      3rdparty/typeshed/google/protobuf/internal/message_listener.pyi
  20. 50
      3rdparty/typeshed/google/protobuf/internal/wire_format.pyi
  21. 34
      3rdparty/typeshed/google/protobuf/message.pyi
  22. 13
      3rdparty/typeshed/google/protobuf/message_factory.pyi
  23. 6
      3rdparty/typeshed/google/protobuf/reflection.pyi
  24. 14
      3rdparty/typeshed/google/protobuf/symbol_database.pyi
  25. 2
      3rdparty/typeshed/mox3.pyi
  26. 2
      3rdparty/typeshed/portalocker.pyi
  27. 2
      3rdparty/typeshed/psutil.pyi
  28. 2
      3rdparty/typeshed/pyfakefs.pyi
  29. 2
      3rdparty/typeshed/quamash.pyi
  30. 2
      3rdparty/typeshed/sip.pyi
  31. 2
      3rdparty/typeshed/toposort.pyi
  32. 2
      3rdparty/typeshed/urwid.pyi
  33. 3
      listdeps
  34. 1
      noisicaa/audioproc/engine/CMakeLists.txt
  35. 57
      noisicaa/audioproc/engine/buffers.pyi
  36. 3
      noisicaa/audioproc/engine/plugin_host_process.py
  37. 4
      noisicaa/audioproc/engine/processor_plugin_test.py
  38. 14
      noisicaa/core/fileutil.py
  39. 3
      noisicaa/model/color.py
  40. 2
      noisicaa/model/model_base.py
  41. 2
      noisicaa/ui/pipeline_graph/base_node.py
  42. 2
      noisicaa/ui/pipeline_graph/track_node.py
  43. 3
      noisicaa/ui/svg_symbol.py
  44. 3
      noisicaa/ui/track_list/score_track_editor.py
  45. 4
      noisidev/runtests.py

94
3rdparty/typeshed/PyQt5/QtCore.pyi vendored

@ -2303,20 +2303,20 @@ class QByteArray(sip.simplewrapper):
@typing.overload
@staticmethod
def number(n: float, format: str = ..., precision: int = ...) -> 'QByteArray': ...
@typing.overload
@staticmethod
def number(n: int, base: int = ...) -> 'QByteArray': ...
@typing.overload
@staticmethod
def number(n: int, base: int = ...) -> 'QByteArray': ...
# @typing.overload
# @staticmethod
# def number(n: int, base: int = ...) -> 'QByteArray': ...
# @typing.overload
# @staticmethod
# def number(n: int, base: int = ...) -> 'QByteArray': ...
@typing.overload
def setNum(self, n: int, base: int = ...) -> 'QByteArray': ...
@typing.overload
def setNum(self, n: float, format: str = ..., precision: int = ...) -> 'QByteArray': ...
@typing.overload
def setNum(self, n: int, base: int = ...) -> 'QByteArray': ...
@typing.overload
def setNum(self, n: int, base: int = ...) -> 'QByteArray': ...
# @typing.overload
# def setNum(self, n: int, base: int = ...) -> 'QByteArray': ...
# @typing.overload
# def setNum(self, n: int, base: int = ...) -> 'QByteArray': ...
@typing.overload
def toBase64(self) -> 'QByteArray': ...
@typing.overload
@ -3013,9 +3013,9 @@ class QDate(sip.simplewrapper):
def day(self) -> int: ...
def month(self) -> int: ...
def year(self) -> int: ...
@typing.overload
def isValid(self) -> bool: ...
@typing.overload
# @typing.overload
# def isValid(self) -> bool: ...
# @typing.overload
@staticmethod
def isValid(y: int, m: int, d: int) -> bool: ...
def __bool__(self) -> int: ...
@ -3061,9 +3061,9 @@ class QTime(sip.simplewrapper):
def second(self) -> int: ...
def minute(self) -> int: ...
def hour(self) -> int: ...
@typing.overload
def isValid(self) -> bool: ...
@typing.overload
# @typing.overload
# def isValid(self) -> bool: ...
# @typing.overload
@staticmethod
def isValid(h: int, m: int, s: int, msec: int = ...) -> bool: ...
def __bool__(self) -> int: ...
@ -3705,34 +3705,34 @@ class QFile(QFileDevice):
def open(self, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ...
@typing.overload
def open(self, fd: int, ioFlags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag], handleFlags: typing.Union[QFileDevice.FileHandleFlags, QFileDevice.FileHandleFlag] = ...) -> bool: ...
@typing.overload
def copy(self, newName: str) -> bool: ...
@typing.overload
# @typing.overload
# def copy(self, newName: str) -> bool: ...
# @typing.overload
@staticmethod
def copy(fileName: str, newName: str) -> bool: ...
@typing.overload
def link(self, newName: str) -> bool: ...
@typing.overload
# @typing.overload
# def link(self, newName: str) -> bool: ...
# @typing.overload
@staticmethod
def link(oldname: str, newName: str) -> bool: ...
@typing.overload
def rename(self, newName: str) -> bool: ...
@typing.overload
# @typing.overload
# def rename(self, newName: str) -> bool: ...
# @typing.overload
@staticmethod
def rename(oldName: str, newName: str) -> bool: ...
@typing.overload
def remove(self) -> bool: ...
@typing.overload
# @typing.overload
# def remove(self) -> bool: ...
# @typing.overload
@staticmethod
def remove(fileName: str) -> bool: ...
@typing.overload
def symLinkTarget(self) -> str: ...
@typing.overload
# @typing.overload
# def symLinkTarget(self) -> str: ...
# @typing.overload
@staticmethod
def symLinkTarget(fileName: str) -> str: ...
@typing.overload
def exists(self) -> bool: ...
@typing.overload
# @typing.overload
# def exists(self) -> bool: ...
# @typing.overload
@staticmethod
def exists(fileName: str) -> bool: ...
@typing.overload
@ -3803,9 +3803,9 @@ class QFileInfo(sip.simplewrapper):
def __fspath__(self) -> typing.Any: ...
def filePath(self) -> str: ...
def refresh(self) -> None: ...
@typing.overload
def exists(self) -> bool: ...
@typing.overload
# @typing.overload
# def exists(self) -> bool: ...
# @typing.overload
@staticmethod
def exists(file: str) -> bool: ...
@typing.overload
@ -4212,8 +4212,8 @@ class QLibrary(QObject):
@staticmethod
def isLibrary(fileName: str) -> bool: ...
def unload(self) -> bool: ...
@typing.overload
def resolve(self, symbol: str) -> sip.voidptr: ...
# @typing.overload
# def resolve(self, symbol: str) -> sip.voidptr: ...
@typing.overload
@staticmethod
def resolve(fileName: str, symbol: str) -> sip.voidptr: ...
@ -5221,11 +5221,11 @@ class QLocale(sip.simplewrapper):
def scriptToString(script: 'QLocale.Script') -> str: ...
def uiLanguages(self) -> typing.List[str]: ...
@typing.overload
def toCurrencyString(self, value: int, symbol: str = ...) -> str: ...
@typing.overload
def toCurrencyString(self, value: float, symbol: str = ...) -> str: ...
@typing.overload
def toCurrencyString(self, value: float, symbol: str, precision: int) -> str: ...
@typing.overload
def toCurrencyString(self, value: int, symbol: str = ...) -> str: ...
def currencySymbol(self, format: 'QLocale.CurrencySymbolFormat' = ...) -> str: ...
def toLower(self, str: str) -> str: ...
def toUpper(self, str: str) -> str: ...
@ -5278,6 +5278,8 @@ class QLocale(sip.simplewrapper):
@staticmethod
def languageToString(language: 'QLocale.Language') -> str: ...
@typing.overload
def toString(self, i: int) -> str: ...
@typing.overload
def toString(self, i: float, format: str = ..., precision: int = ...) -> str: ...
@typing.overload
def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], format: str) -> str: ...
@ -5291,8 +5293,6 @@ class QLocale(sip.simplewrapper):
def toString(self, time: typing.Union[QTime, datetime.time], formatStr: str) -> str: ...
@typing.overload
def toString(self, time: typing.Union[QTime, datetime.time], format: 'QLocale.FormatType' = ...) -> str: ...
@typing.overload
def toString(self, i: int) -> str: ...
def toDouble(self, s: str) -> typing.Tuple[float, bool]: ...
def toFloat(self, s: str) -> typing.Tuple[float, bool]: ...
def toULongLong(self, s: str) -> typing.Tuple[int, bool]: ...
@ -5633,10 +5633,10 @@ class QMetaType(sip.simplewrapper):
def flags(self) -> 'QMetaType.TypeFlags': ...
@staticmethod
def typeFlags(type: int) -> 'QMetaType.TypeFlags': ...
@typing.overload
@staticmethod
def isRegistered(type: int) -> bool: ...
@typing.overload
# @typing.overload
# @staticmethod
# def isRegistered(type: int) -> bool: ...
# @typing.overload
def isRegistered(self) -> bool: ...
@staticmethod
def typeName(type: int) -> str: ...

182
3rdparty/typeshed/PyQt5/QtGui.pyi vendored

@ -2347,13 +2347,13 @@ class QImageReader(sip.simplewrapper):
def textKeys(self) -> typing.List[str]: ...
@staticmethod
def supportedImageFormats() -> typing.List[QtCore.QByteArray]: ...
@typing.overload
@staticmethod
def imageFormat(fileName: str) -> QtCore.QByteArray: ...
@typing.overload
@staticmethod
def imageFormat(device: QtCore.QIODevice) -> QtCore.QByteArray: ...
@typing.overload
# @typing.overload
# @staticmethod
# def imageFormat(fileName: str) -> QtCore.QByteArray: ...
# @typing.overload
# @staticmethod
# def imageFormat(device: QtCore.QIODevice) -> QtCore.QByteArray: ...
# @typing.overload
def imageFormat(self) -> QImage.Format: ...
def errorString(self) -> str: ...
def error(self) -> 'QImageReader.ImageReaderError': ...
@ -2833,11 +2833,11 @@ class QOpenGLBuffer(sip.simplewrapper):
def __len__(self) -> int: ...
def size(self) -> int: ...
def bufferId(self) -> int: ...
@typing.overload
# @typing.overload
def release(self) -> None: ...
@typing.overload
@staticmethod
def release(type: 'QOpenGLBuffer.Type') -> None: ...
# @typing.overload
# @staticmethod
# def release(type: 'QOpenGLBuffer.Type') -> None: ...
def bind(self) -> bool: ...
def destroy(self) -> None: ...
def isCreated(self) -> bool: ...
@ -4518,57 +4518,57 @@ class QPageSize(sip.simplewrapper):
def rectPixels(self, resolution: int) -> QtCore.QRect: ...
def rectPoints(self) -> QtCore.QRect: ...
def rect(self, units: 'QPageSize.Unit') -> QtCore.QRectF: ...
@typing.overload
# @typing.overload
def sizePixels(self, resolution: int) -> QtCore.QSize: ...
@typing.overload
@staticmethod
def sizePixels(pageSizeId: 'QPageSize.PageSizeId', resolution: int) -> QtCore.QSize: ...
@typing.overload
# @typing.overload
# @staticmethod
# def sizePixels(pageSizeId: 'QPageSize.PageSizeId', resolution: int) -> QtCore.QSize: ...
# @typing.overload
def sizePoints(self) -> QtCore.QSize: ...
@typing.overload
@staticmethod
def sizePoints(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSize: ...
@typing.overload
# @typing.overload
# @staticmethod
# def sizePoints(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSize: ...
# @typing.overload
def size(self, units: 'QPageSize.Unit') -> QtCore.QSizeF: ...
@typing.overload
@staticmethod
def size(pageSizeId: 'QPageSize.PageSizeId', units: 'QPageSize.Unit') -> QtCore.QSizeF: ...
@typing.overload
# @typing.overload
# @staticmethod
# def size(pageSizeId: 'QPageSize.PageSizeId', units: 'QPageSize.Unit') -> QtCore.QSizeF: ...
# @typing.overload
def definitionUnits(self) -> 'QPageSize.Unit': ...
@typing.overload
@staticmethod
def definitionUnits(pageSizeId: 'QPageSize.PageSizeId') -> 'QPageSize.Unit': ...
@typing.overload
# @typing.overload
# @staticmethod
# def definitionUnits(pageSizeId: 'QPageSize.PageSizeId') -> 'QPageSize.Unit': ...
# @typing.overload
def definitionSize(self) -> QtCore.QSizeF: ...
@typing.overload
@staticmethod
def definitionSize(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSizeF: ...
@typing.overload
# @typing.overload
# @staticmethod
# def definitionSize(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSizeF: ...
# @typing.overload
def windowsId(self) -> int: ...
@typing.overload
@staticmethod
def windowsId(pageSizeId: 'QPageSize.PageSizeId') -> int: ...
@typing.overload
# @typing.overload
# @staticmethod
# def windowsId(pageSizeId: 'QPageSize.PageSizeId') -> int: ...
# @typing.overload
def id(self) -> 'QPageSize.PageSizeId': ...
@typing.overload
@staticmethod
def id(pointSize: QtCore.QSize, matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ...
@typing.overload
@staticmethod
def id(size: QtCore.QSizeF, units: 'QPageSize.Unit', matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ...
@typing.overload
@staticmethod
def id(windowsId: int) -> 'QPageSize.PageSizeId': ...
@typing.overload
# @typing.overload
# @staticmethod
# def id(pointSize: QtCore.QSize, matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ...
# @typing.overload
# @staticmethod
# def id(size: QtCore.QSizeF, units: 'QPageSize.Unit', matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ...
# @typing.overload
# @staticmethod
# def id(windowsId: int) -> 'QPageSize.PageSizeId': ...
# @typing.overload
def name(self) -> str: ...
@typing.overload
@staticmethod
def name(pageSizeId: 'QPageSize.PageSizeId') -> str: ...
@typing.overload
# @typing.overload
# @staticmethod
# def name(pageSizeId: 'QPageSize.PageSizeId') -> str: ...
# @typing.overload
def key(self) -> str: ...
@typing.overload
@staticmethod
def key(pageSizeId: 'QPageSize.PageSizeId') -> str: ...
# @typing.overload
# @staticmethod
# def key(pageSizeId: 'QPageSize.PageSizeId') -> str: ...
def isValid(self) -> bool: ...
def isEquivalentTo(self, other: 'QPageSize') -> bool: ...
def swap(self, other: 'QPageSize') -> None: ...
@ -4725,16 +4725,16 @@ class QPainter(sip.simplewrapper):
@typing.overload
def drawImage(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], image: QImage) -> None: ...
@typing.overload
def drawImage(self, p: QtCore.QPoint, image: QImage) -> None: ...
@typing.overload
# def drawImage(self, p: QtCore.QPoint, image: QImage) -> None: ...
# @typing.overload
def drawImage(self, x: int, y: int, image: QImage, sx: int = ..., sy: int = ..., sw: int = ..., sh: int = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ...
@typing.overload
def drawPoint(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
@typing.overload
def drawPoint(self, x: int, y: int) -> None: ...
@typing.overload
def drawPoint(self, p: QtCore.QPoint) -> None: ...
@typing.overload
# def drawPoint(self, p: QtCore.QPoint) -> None: ...
# @typing.overload
def drawRect(self, rect: QtCore.QRectF) -> None: ...
@typing.overload
def drawRect(self, x: int, y: int, w: int, h: int) -> None: ...
@ -4770,10 +4770,10 @@ class QPainter(sip.simplewrapper):
def fillRect(self, a0: QtCore.QRectF, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ...
@typing.overload
def fillRect(self, a0: QtCore.QRect, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ...
@typing.overload
def fillRect(self, x: int, y: int, w: int, h: int, b: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ...
@typing.overload
def fillRect(self, x: int, y: int, w: int, h: int, c: QtCore.Qt.GlobalColor) -> None: ...
# @typing.overload
# def fillRect(self, x: int, y: int, w: int, h: int, b: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ...
# @typing.overload
# def fillRect(self, x: int, y: int, w: int, h: int, c: QtCore.Qt.GlobalColor) -> None: ...
@typing.overload
def fillRect(self, r: QtCore.QRect, c: QtCore.Qt.GlobalColor) -> None: ...
@typing.overload
@ -4800,8 +4800,8 @@ class QPainter(sip.simplewrapper):
def drawText(self, rectangle: QtCore.QRect, flags: int, text: str) -> QtCore.QRect: ...
@typing.overload
def drawText(self, rectangle: QtCore.QRectF, text: str, option: 'QTextOption' = ...) -> None: ...
@typing.overload
def drawText(self, p: QtCore.QPoint, s: str) -> None: ...
# @typing.overload
# def drawText(self, p: QtCore.QPoint, s: str) -> None: ...
@typing.overload
def drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str) -> QtCore.QRect: ...
@typing.overload
@ -4814,8 +4814,8 @@ class QPainter(sip.simplewrapper):
def drawPixmap(self, targetRect: QtCore.QRect, pixmap: QPixmap, sourceRect: QtCore.QRect) -> None: ...
@typing.overload
def drawPixmap(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], pm: QPixmap) -> None: ...
@typing.overload
def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap) -> None: ...
# @typing.overload
# def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap) -> None: ...
@typing.overload
def drawPixmap(self, r: QtCore.QRect, pm: QPixmap) -> None: ...
@typing.overload
@ -4864,24 +4864,24 @@ class QPainter(sip.simplewrapper):
def drawConvexPolygon(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ...
@typing.overload
def drawConvexPolygon(self, poly: 'QPolygonF') -> None: ...
@typing.overload
def drawConvexPolygon(self, point: QtCore.QPoint, *a1) -> None: ...
# @typing.overload
# def drawConvexPolygon(self, point: QtCore.QPoint, *a1) -> None: ...
@typing.overload
def drawConvexPolygon(self, poly: 'QPolygon') -> None: ...
@typing.overload
def drawPolygon(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ...
@typing.overload
def drawPolygon(self, points: 'QPolygonF', fillRule: QtCore.Qt.FillRule = ...) -> None: ...
@typing.overload
def drawPolygon(self, point: QtCore.QPoint, *a1) -> None: ...
# @typing.overload
# def drawPolygon(self, point: QtCore.QPoint, *a1) -> None: ...
@typing.overload
def drawPolygon(self, points: 'QPolygon', fillRule: QtCore.Qt.FillRule = ...) -> None: ...
@typing.overload
def drawPolyline(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ...
@typing.overload
def drawPolyline(self, polyline: 'QPolygonF') -> None: ...
@typing.overload
def drawPolyline(self, point: QtCore.QPoint, *a1) -> None: ...
# @typing.overload
# def drawPolyline(self, point: QtCore.QPoint, *a1) -> None: ...
@typing.overload
def drawPolyline(self, polyline: 'QPolygon') -> None: ...
@typing.overload
@ -4892,16 +4892,16 @@ class QPainter(sip.simplewrapper):
def drawEllipse(self, x: int, y: int, w: int, h: int) -> None: ...
@typing.overload
def drawEllipse(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], rx: float, ry: float) -> None: ...
@typing.overload
def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ...
# @typing.overload
# def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ...
@typing.overload
def drawRects(self, rect: QtCore.QRectF, *a1) -> None: ...
@typing.overload
def drawRects(self, rects: typing.Any) -> None: ...
@typing.overload
def drawRects(self, rect: QtCore.QRect, *a1) -> None: ...
@typing.overload
def drawRects(self, rects: typing.Any) -> None: ...
# @typing.overload
# def drawRects(self, rects: typing.Any) -> None: ...
@typing.overload
def drawLines(self, line: QtCore.QLineF, *a1) -> None: ...
@typing.overload
@ -4912,18 +4912,18 @@ class QPainter(sip.simplewrapper):
def drawLines(self, pointPairs: typing.Iterable[typing.Union[QtCore.QPointF, QtCore.QPoint]]) -> None: ...
@typing.overload
def drawLines(self, line: QtCore.QLine, *a1) -> None: ...
@typing.overload
def drawLines(self, lines: typing.Any) -> None: ...
@typing.overload
def drawLines(self, pointPair: QtCore.QPoint, *a1) -> None: ...
# @typing.overload
# def drawLines(self, lines: typing.Any) -> None: ...
# @typing.overload
# def drawLines(self, pointPair: QtCore.QPoint, *a1) -> None: ...
@typing.overload
def drawLines(self, pointPairs: typing.Any) -> None: ...
@typing.overload
def drawPoints(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ...
@typing.overload
def drawPoints(self, points: 'QPolygonF') -> None: ...
@typing.overload
def drawPoints(self, point: QtCore.QPoint, *a1) -> None: ...
# @typing.overload
# def drawPoints(self, point: QtCore.QPoint, *a1) -> None: ...
@typing.overload
def drawPoints(self, points: 'QPolygon') -> None: ...
def drawPath(self, path: 'QPainterPath') -> None: ...
@ -4945,8 +4945,8 @@ class QPainter(sip.simplewrapper):
def translate(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
@typing.overload
def translate(self, dx: float, dy: float) -> None: ...
@typing.overload
def translate(self, offset: QtCore.QPoint) -> None: ...
# @typing.overload
# def translate(self, offset: QtCore.QPoint) -> None: ...
def rotate(self, a: float) -> None: ...
def shear(self, sh: float, sv: float) -> None: ...
def scale(self, sx: float, sy: float) -> None: ...
@ -5143,14 +5143,14 @@ class QPaintEngine(sip.simplewrapper):
def drawTiledPixmap(self, r: QtCore.QRectF, pixmap: QPixmap, s: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
def drawTextItem(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], textItem: QTextItem) -> None: ...
def drawPixmap(self, r: QtCore.QRectF, pm: QPixmap, sr: QtCore.QRectF) -> None: ...
@typing.overload
# @typing.overload
def drawPolygon(self, points: typing.Union[QtCore.QPointF, QtCore.QPoint], mode: 'QPaintEngine.PolygonDrawMode') -> None: ...
@typing.overload
def drawPolygon(self, points: QtCore.QPoint, mode: 'QPaintEngine.PolygonDrawMode') -> None: ...
@typing.overload
# @typing.overload
# def drawPolygon(self, points: QtCore.QPoint, mode: 'QPaintEngine.PolygonDrawMode') -> None: ...
# @typing.overload
def drawPoints(self, points: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
@typing.overload
def drawPoints(self, points: QtCore.QPoint) -> None: ...
# @typing.overload
# def drawPoints(self, points: QtCore.QPoint) -> None: ...
def drawPath(self, path: 'QPainterPath') -> None: ...
@typing.overload
def drawEllipse(self, r: QtCore.QRectF) -> None: ...
@ -5394,8 +5394,8 @@ class QPalette(sip.simplewrapper):
def __init__(self) -> None: ...
@typing.overload
def __init__(self, button: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ...
@typing.overload
def __init__(self, button: QtCore.Qt.GlobalColor) -> None: ...
# @typing.overload
# def __init__(self, button: QtCore.Qt.GlobalColor) -> None: ...
@typing.overload
def __init__(self, button: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient], background: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ...
@typing.overload

2
3rdparty/typeshed/PyQt5/QtSvg.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

24
3rdparty/typeshed/PyQt5/QtWidgets.pyi vendored

@ -5543,9 +5543,9 @@ class QLabel(QFrame):
def setPixmap(self, a0: QtGui.QPixmap) -> None: ...
def setPicture(self, a0: QtGui.QPicture) -> None: ...
@typing.overload
def setNum(self, a0: float) -> None: ...
@typing.overload
def setNum(self, a0: int) -> None: ...
@typing.overload
def setNum(self, a0: float) -> None: ...
def setMovie(self, movie: QtGui.QMovie) -> None: ...
def clear(self) -> None: ...
def setOpenExternalLinks(self, open: bool) -> None: ...
@ -5640,9 +5640,9 @@ class QLCDNumber(QFrame):
@typing.overload
def display(self, str: str) -> None: ...
@typing.overload
def display(self, num: float) -> None: ...
@typing.overload
def display(self, num: int) -> None: ...
@typing.overload
def display(self, num: float) -> None: ...
def sizeHint(self) -> QtCore.QSize: ...
def intValue(self) -> int: ...
def value(self) -> float: ...
@ -5651,9 +5651,9 @@ class QLCDNumber(QFrame):
def setMode(self, a0: 'QLCDNumber.Mode') -> None: ...
def mode(self) -> 'QLCDNumber.Mode': ...
@typing.overload
def checkOverflow(self, num: float) -> bool: ...
@typing.overload
def checkOverflow(self, num: int) -> bool: ...
@typing.overload
def checkOverflow(self, num: float) -> bool: ...
def setNumDigits(self, nDigits: int) -> None: ...
def setDigitCount(self, nDigits: int) -> None: ...
def digitCount(self) -> int: ...
@ -6274,16 +6274,16 @@ class QMenu(QWidget):
def exec(self) -> QAction: ...
@typing.overload
def exec(self, pos: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> QAction: ...
@typing.overload
@staticmethod
def exec(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ...
# @typing.overload
# @staticmethod
# def exec(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ...
@typing.overload
def exec_(self) -> QAction: ...
@typing.overload
def exec_(self, p: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> QAction: ...
@typing.overload
@staticmethod
def exec_(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ...
# @typing.overload
# @staticmethod
# def exec_(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ...
def popup(self, p: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> None: ...
def activeAction(self) -> QAction: ...
def setActiveAction(self, act: QAction) -> None: ...

2
3rdparty/typeshed/async_generator.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/capnp.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/eventfd.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/gbulb.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

0
3rdparty/typeshed/google/__init__.pyi vendored

1
3rdparty/typeshed/google/protobuf/__init__.pyi vendored

@ -1 +0,0 @@
__version__ = ... # type: str

161
3rdparty/typeshed/google/protobuf/descriptor.pyi vendored

@ -1,161 +0,0 @@
from typing import Any
from .message import Message
class Error(Exception): ...
class TypeTransformationError(Error): ...
class DescriptorMetaclass(type):
def __instancecheck__(cls, obj): ...
class DescriptorBase:
__metaclass__ = DescriptorMetaclass
has_options = ... # type: Any
def __init__(self, options, options_class_name) -> None: ...
def GetOptions(self): ...
class _NestedDescriptorBase(DescriptorBase):
name = ... # type: Any
full_name = ... # type: Any
file = ... # type: Any
containing_type = ... # type: Any
def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=..., serialized_end=...) -> None: ...
def GetTopLevelContainingType(self): ...
def CopyToProto(self, proto): ...
class Descriptor(_NestedDescriptorBase):
def __new__(cls, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...): ...
fields = ... # type: Any
fields_by_number = ... # type: Any
fields_by_name = ... # type: Any
nested_types = ... # type: Any
nested_types_by_name = ... # type: Any
enum_types = ... # type: Any
enum_types_by_name = ... # type: Any
enum_values_by_name = ... # type: Any
extensions = ... # type: Any
extensions_by_name = ... # type: Any
is_extendable = ... # type: Any
extension_ranges = ... # type: Any
oneofs = ... # type: Any
oneofs_by_name = ... # type: Any
syntax = ... # type: Any
def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...) -> None: ...
def EnumValueName(self, enum, value): ...
def CopyToProto(self, proto): ...
class FieldDescriptor(DescriptorBase):
TYPE_DOUBLE = ... # type: Any
TYPE_FLOAT = ... # type: Any
TYPE_INT64 = ... # type: Any
TYPE_UINT64 = ... # type: Any
TYPE_INT32 = ... # type: Any
TYPE_FIXED64 = ... # type: Any
TYPE_FIXED32 = ... # type: Any
TYPE_BOOL = ... # type: Any
TYPE_STRING = ... # type: Any
TYPE_GROUP = ... # type: Any
TYPE_MESSAGE = ... # type: Any
TYPE_BYTES = ... # type: Any
TYPE_UINT32 = ... # type: Any
TYPE_ENUM = ... # type: Any
TYPE_SFIXED32 = ... # type: Any
TYPE_SFIXED64 = ... # type: Any
TYPE_SINT32 = ... # type: Any
TYPE_SINT64 = ... # type: Any
MAX_TYPE = ... # type: Any
CPPTYPE_INT32 = ... # type: Any
CPPTYPE_INT64 = ... # type: Any
CPPTYPE_UINT32 = ... # type: Any
CPPTYPE_UINT64 = ... # type: Any
CPPTYPE_DOUBLE = ... # type: Any
CPPTYPE_FLOAT = ... # type: Any
CPPTYPE_BOOL = ... # type: Any
CPPTYPE_ENUM = ... # type: Any
CPPTYPE_STRING = ... # type: Any
CPPTYPE_MESSAGE = ... # type: Any
MAX_CPPTYPE = ... # type: Any
LABEL_OPTIONAL = ... # type: Any
LABEL_REQUIRED = ... # type: Any
LABEL_REPEATED = ... # type: Any
MAX_LABEL = ... # type: Any
MAX_FIELD_NUMBER = ... # type: Any
FIRST_RESERVED_FIELD_NUMBER = ... # type: Any
LAST_RESERVED_FIELD_NUMBER = ... # type: Any
def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...): ...
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
number = ... # type: Any
type = ... # type: Any
cpp_type = ... # type: Any
label = ... # type: Any
has_default_value = ... # type: Any
default_value = ... # type: Any
containing_type = ... # type: Any
message_type = ... # type: Any
enum_type = ... # type: Any
is_extension = ... # type: Any
extension_scope = ... # type: Any
containing_oneof = ... # type: Any
def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...) -> None: ...
@staticmethod
def ProtoTypeToCppProtoType(proto_type): ...
class EnumDescriptor(_NestedDescriptorBase):
def __new__(cls, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...): ...
values = ... # type: Any
values_by_name = ... # type: Any
values_by_number = ... # type: Any
def __init__(self, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...
def CopyToProto(self, proto): ...
class EnumValueDescriptor(DescriptorBase):
def __new__(cls, name, index, number, type=..., options=...): ...
name = ... # type: Any
index = ... # type: Any
number = ... # type: Any
type = ... # type: Any
def __init__(self, name, index, number, type=..., options=...) -> None: ...
class OneofDescriptor:
def __new__(cls, name, full_name, index, containing_type, fields): ...
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
containing_type = ... # type: Any
fields = ... # type: Any
def __init__(self, name, full_name, index, containing_type, fields) -> None: ...
class ServiceDescriptor(_NestedDescriptorBase):
index = ... # type: Any
methods = ... # type: Any
def __init__(self, name, full_name, index, methods, options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...
def FindMethodByName(self, name): ...
def CopyToProto(self, proto): ...
class MethodDescriptor(DescriptorBase):
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
containing_service = ... # type: Any
input_type = ... # type: Any
output_type = ... # type: Any
def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=...) -> None: ...
class FileDescriptor(DescriptorBase):
def __new__(cls, name, package, options=..., serialized_pb=..., dependencies=..., syntax=...): ...
_options = ... # type: Any
message_types_by_name = ... # type: Any
name = ... # type: Any
package = ... # type: Any
syntax = ... # type: Any
serialized_pb = ... # type: Any
enum_types_by_name = ... # type: Any
extensions_by_name = ... # type: Any
dependencies = ... # type: Any
def __init__(self, name, package, options=..., serialized_pb=..., dependencies=..., syntax=...) -> None: ...
def CopyToProto(self, proto): ...
def MakeDescriptor(desc_proto, package=..., build_file_if_cpp=..., syntax=...): ...
def _ParseOptions(message: Message, string: str) -> Message: ...

2
3rdparty/typeshed/google/protobuf/descriptor_pb2.pyi vendored

@ -1,2 +0,0 @@
class FileOptions(object): ...
class FieldOptions(object): ...

18
3rdparty/typeshed/google/protobuf/descriptor_pool.pyi vendored

@ -1,18 +0,0 @@
from typing import Any, Optional
class DescriptorPool:
def __new__(cls, descriptor_db: Optional[Any] = ...): ...
def __init__(self, descriptor_db: Optional[Any] = ...) -> None: ...
def Add(self, file_desc_proto): ...
def AddSerializedFile(self, serialized_file_desc_proto): ...
def AddDescriptor(self, desc): ...
def AddEnumDescriptor(self, enum_desc): ...
def AddFileDescriptor(self, file_desc): ...
def FindFileByName(self, file_name): ...
def FindFileContainingSymbol(self, symbol): ...
def FindMessageTypeByName(self, full_name): ...
def FindEnumTypeByName(self, full_name): ...
def FindFieldByName(self, full_name): ...
def FindExtensionByName(self, full_name): ...
def Default(): ...

0
3rdparty/typeshed/google/protobuf/internal/__init__.pyi vendored

35
3rdparty/typeshed/google/protobuf/internal/containers.pyi vendored

@ -1,35 +0,0 @@
from google.protobuf.descriptor import Descriptor
from google.protobuf.internal.message_listener import MessageListener
from google.protobuf.message import Message
from typing import (
MutableSequence, Sequence, TypeVar, Generic, Any, Iterator, Iterable,
Union, Optional, Callable
)
_T = TypeVar('_T')
class BaseContainer(Generic[_T], MutableSequence[_T]):
def __init__(self, message_listener: MessageListener) -> None: ...
def __len__(self) -> int: ...
def __ne__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
def __repr__(self) -> str: ...
def sort(self, *, key: Optional[Callable[[_T], Any]] = ..., reverse: bool = ...) -> None: ...
class RepeatedScalarFieldContainer(Generic[_T], BaseContainer[_T]):
def __init__(self, message_listener: MessageListener, message_descriptor: Descriptor) -> None: ...
def MergeFrom(self, other: RepeatedScalarFieldContainer[_T]) -> None: ...
class RepeatedCompositeFieldContainer(Generic[_T], BaseContainer[_T]):
def __init__(self, message_listener: MessageListener, type_checker: Any) -> None: ...
def add(self, **kwargs: Any) -> _T: ...
def MergeFrom(self, other: RepeatedCompositeFieldContainer[_T]) -> None: ...
# Classes not yet typed
class Mapping(Any):
pass
class MutableMapping(Mapping):
pass
class ScalarMap(MutableMapping):
pass
class MessageMap(MutableMapping):
pass

30
3rdparty/typeshed/google/protobuf/internal/decoder.pyi vendored

@ -1,30 +0,0 @@
from typing import Any
def ReadTag(buffer, pos): ...
def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): ...
Int32Decoder = ... # type: Any
Int64Decoder = ... # type: Any
UInt32Decoder = ... # type: Any
UInt64Decoder = ... # type: Any
SInt32Decoder = ... # type: Any
SInt64Decoder = ... # type: Any
Fixed32Decoder = ... # type: Any
Fixed64Decoder = ... # type: Any
SFixed32Decoder = ... # type: Any
SFixed64Decoder = ... # type: Any
FloatDecoder = ... # type: Any
DoubleDecoder = ... # type: Any
BoolDecoder = ... # type: Any
def StringDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): ...
MESSAGE_SET_ITEM_TAG = ... # type: Any
def MessageSetItemDecoder(extensions_by_number): ...
def MapDecoder(field_descriptor, new_default, is_message_map): ...
SkipField = ... # type: Any

34
3rdparty/typeshed/google/protobuf/internal/encoder.pyi vendored

@ -1,34 +0,0 @@
from typing import Any
Int32Sizer = ... # type: Any
UInt32Sizer = ... # type: Any
SInt32Sizer = ... # type: Any
Fixed32Sizer = ... # type: Any
Fixed64Sizer = ... # type: Any
BoolSizer = ... # type: Any
def StringSizer(field_number, is_repeated, is_packed): ...
def BytesSizer(field_number, is_repeated, is_packed): ...
def GroupSizer(field_number, is_repeated, is_packed): ...
def MessageSizer(field_number, is_repeated, is_packed): ...
def MessageSetItemSizer(field_number): ...
def MapSizer(field_descriptor): ...
def TagBytes(field_number, wire_type): ...
Int32Encoder = ... # type: Any
UInt32Encoder = ... # type: Any
SInt32Encoder = ... # type: Any
Fixed32Encoder = ... # type: Any
Fixed64Encoder = ... # type: Any
SFixed32Encoder = ... # type: Any
SFixed64Encoder = ... # type: Any
FloatEncoder = ... # type: Any
DoubleEncoder = ... # type: Any
def BoolEncoder(field_number, is_repeated, is_packed): ...
def StringEncoder(field_number, is_repeated, is_packed): ...
def BytesEncoder(field_number, is_repeated, is_packed): ...
def GroupEncoder(field_number, is_repeated, is_packed): ...
def MessageEncoder(field_number, is_repeated, is_packed): ...
def MessageSetItemEncoder(field_number): ...
def MapEncoder(field_descriptor): ...

11
3rdparty/typeshed/google/protobuf/internal/enum_type_wrapper.pyi vendored

@ -1,11 +0,0 @@
from typing import Any, List, Tuple
class EnumTypeWrapper(object):
def __init__(self, enum_type: Any) -> None: ...
def Name(self, number: int) -> str: ...
def Value(self, name: str) -> int: ...
def keys(self) -> List[str]: ...
def values(self) -> List[int]: ...
@classmethod
def items(cls) -> List[Tuple[str, int]]: ...

5
3rdparty/typeshed/google/protobuf/internal/message_listener.pyi vendored

@ -1,5 +0,0 @@
class MessageListener(object):
def Modified(self) -> None: ...
class NullMessageListener(MessageListener):
def Modified(self) -> None: ...

50
3rdparty/typeshed/google/protobuf/internal/wire_format.pyi vendored

@ -1,50 +0,0 @@
from typing import Any
TAG_TYPE_BITS = ... # type: Any
TAG_TYPE_MASK = ... # type: Any
WIRETYPE_VARINT = ... # type: Any
WIRETYPE_FIXED64 = ... # type: Any
WIRETYPE_LENGTH_DELIMITED = ... # type: Any
WIRETYPE_START_GROUP = ... # type: Any
WIRETYPE_END_GROUP = ... # type: Any
WIRETYPE_FIXED32 = ... # type: Any
INT32_MAX = ... # type: Any
INT32_MIN = ... # type: Any
UINT32_MAX = ... # type: Any
INT64_MAX = ... # type: Any
INT64_MIN = ... # type: Any
UINT64_MAX = ... # type: Any
FORMAT_UINT32_LITTLE_ENDIAN = ... # type: Any
FORMAT_UINT64_LITTLE_ENDIAN = ... # type: Any
FORMAT_FLOAT_LITTLE_ENDIAN = ... # type: Any
FORMAT_DOUBLE_LITTLE_ENDIAN = ... # type: Any
def PackTag(field_number, wire_type): ...
def UnpackTag(tag): ...
def ZigZagEncode(value): ...
def ZigZagDecode(value): ...
def Int32ByteSize(field_number, int32): ...
def Int32ByteSizeNoTag(int32): ...
def Int64ByteSize(field_number, int64): ...
def UInt32ByteSize(field_number, uint32): ...
def UInt64ByteSize(field_number, uint64): ...
def SInt32ByteSize(field_number, int32): ...
def SInt64ByteSize(field_number, int64): ...
def Fixed32ByteSize(field_number, fixed32): ...
def Fixed64ByteSize(field_number, fixed64): ...
def SFixed32ByteSize(field_number, sfixed32): ...
def SFixed64ByteSize(field_number, sfixed64): ...
def FloatByteSize(field_number, flt): ...
def DoubleByteSize(field_number, double): ...
def BoolByteSize(field_number, b): ...
def EnumByteSize(field_number, enum): ...
def StringByteSize(field_number, string): ...
def BytesByteSize(field_number, b): ...
def GroupByteSize(field_number, message): ...
def MessageByteSize(field_number, message): ...
def MessageSetItemByteSize(field_number, msg): ...
def TagByteSize(field_number): ...
NON_PACKABLE_TYPES = ... # type: Any
def IsTypePackable(field_type): ...

34
3rdparty/typeshed/google/protobuf/message.pyi vendored

@ -1,34 +0,0 @@
from typing import Any, Dict, Sequence, Optional, Text, Tuple
from .descriptor import FieldDescriptor
class Error(Exception): ...
class DecodeError(Error): ...
class EncodeError(Error): ...
class Message:
DESCRIPTOR = ... # type: Any
Extensions = ... # type: Dict[Any, Any]
def __deepcopy__(self, memo=...): ...
def __eq__(self, other_msg): ...
def __ne__(self, other_msg): ...
def MergeFrom(self, other_msg: Message) -> None: ...
def CopyFrom(self, other_msg: Message) -> None: ...
def Clear(self) -> None: ...
def SetInParent(self) -> None: ...
def IsInitialized(self) -> bool: ...
def MergeFromString(self, serialized: bytes) -> int: ... # TODO: we need to be able to call buffer() on serialized
def ParseFromString(self, serialized: bytes) -> None: ...
def SerializeToString(self) -> bytes: ...
def SerializePartialToString(self) -> bytes: ...
def ListFields(self) -> Sequence[Tuple[FieldDescriptor, Any]]: ...
def HasField(self, field_name: Text) -> bool: ...
def ClearField(self, field_name: Text) -> None: ...
def WhichOneof(self, oneof_group) -> Optional[str]: ...
def HasExtension(self, extension_handle): ...
def ClearExtension(self, extension_handle): ...
def ByteSize(self) -> int: ...
# TODO: check kwargs
def __init__(self, **kwargs) -> None: ...

13
3rdparty/typeshed/google/protobuf/message_factory.pyi vendored

@ -1,13 +0,0 @@
from typing import Any, Dict, Iterable, Optional, Type
from .message import Message
from .descriptor import Descriptor
from .descriptor_pool import DescriptorPool
class MessageFactory:
pool = ... # type: Any
def __init__(self, pool: Optional[DescriptorPool] = ...) -> None: ...
def GetPrototype(self, descriptor: Descriptor) -> Type[Message]: ...
def GetMessages(self, files: Iterable[str]) -> Dict[str, Type[Message]]: ...
def GetMessages(file_protos: Iterable[str]) -> Dict[str, Type[Message]]: ...

6
3rdparty/typeshed/google/protobuf/reflection.pyi vendored

@ -1,6 +0,0 @@
class GeneratedProtocolMessageType(type):
def __new__(cls, name, bases, dictionary): ...
def __init__(cls, name, bases, dictionary) -> None: ...
def ParseMessage(descriptor, byte_str): ...
def MakeClass(descriptor): ...

14
3rdparty/typeshed/google/protobuf/symbol_database.pyi vendored

@ -1,14 +0,0 @@
from typing import Dict, Iterable, Type
from .descriptor import EnumDescriptor, FileDescriptor
from .message import Message
from .message_factory import MessageFactory
class SymbolDatabase(MessageFactory):
def RegisterMessage(self, message: Type[Message]) -> Type[Message]: ...
def RegisterEnumDescriptor(self, enum_descriptor: Type[EnumDescriptor]) -> EnumDescriptor: ...
def RegisterFileDescriptor(self, file_descriptor: Type[FileDescriptor]) -> FileDescriptor: ...
def GetSymbol(self, symbol: str) -> Type[Message]: ...
def GetMessages(self, files: Iterable[str]) -> Dict[str, Type[Message]]: ...
def Default(): ...

2
3rdparty/typeshed/mox3.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/portalocker.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/psutil.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/pyfakefs.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/quamash.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/sip.pyi vendored

@ -35,7 +35,7 @@ Buffer = Union['array', 'voidptr', str, bytes, bytearray]
# The array type.
class array(Sequence): ...
array = Sequence
# The voidptr type.

2
3rdparty/typeshed/toposort.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

2
3rdparty/typeshed/urwid.pyi vendored

@ -0,0 +1,2 @@
from typing import Any
def __getattr__(arrr: str) -> Any: ...

3
listdeps

@ -82,8 +82,9 @@ PIP_DEPS = {
PKG('py-cpuinfo'),
PKG('pyfakefs'),
PKG('pylint==2.2.2'),
PKG('mypy==0.610'),
PKG('mypy==0.650'),
PKG('mypy-extensions'),
PKG('PyGObject-stubs'),
],
'vmtests': [
PKG('paramiko'),

1
noisicaa/audioproc/engine/CMakeLists.txt

@ -22,6 +22,7 @@ add_python_package(
backend.pyi
backend_test.py
block_context.pyi
buffers.pyi
buffer_arena.pyi
engine_perftest.py
engine_test.py

57
noisicaa/audioproc/engine/buffers.pyi

@ -0,0 +1,57 @@
# @begin:license
#
# Copyright (c) 2015-2018, Benjamin Niemann <pink@odahoda.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# @end:license
from typing import List
class PyBufferType(object):
@property
def view_type(self) ->