Skip to content

Ignore some Liskov failures in QtSensors #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions PyQt5-stubs/QtSensors.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class QAccelerometerFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QAccelerometerFilter') -> None: ...

def filter(self, reading: QAccelerometerReading) -> bool: ...
def filter(self, reading: QAccelerometerReading) -> bool: ... # type: ignore[override]


class QSensor(QtCore.QObject):
Expand Down Expand Up @@ -179,7 +179,7 @@ class QAltimeterFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QAltimeterFilter') -> None: ...

def filter(self, reading: QAltimeterReading) -> bool: ...
def filter(self, reading: QAltimeterReading) -> bool: ... # type: ignore[override]


class QAltimeter(QSensor):
Expand Down Expand Up @@ -210,7 +210,7 @@ class QAmbientLightFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QAmbientLightFilter') -> None: ...

def filter(self, reading: QAmbientLightReading) -> bool: ...
def filter(self, reading: QAmbientLightReading) -> bool: ... # type: ignore[override]


class QAmbientLightSensor(QSensor):
Expand All @@ -233,7 +233,7 @@ class QAmbientTemperatureFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QAmbientTemperatureFilter') -> None: ...

def filter(self, reading: QAmbientTemperatureReading) -> bool: ...
def filter(self, reading: QAmbientTemperatureReading) -> bool: ... # type: ignore[override]


class QAmbientTemperatureSensor(QSensor):
Expand All @@ -258,7 +258,7 @@ class QCompassFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QCompassFilter') -> None: ...

def filter(self, reading: QCompassReading) -> bool: ...
def filter(self, reading: QCompassReading) -> bool: ... # type: ignore[override]


class QCompass(QSensor):
Expand All @@ -281,7 +281,7 @@ class QDistanceFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QDistanceFilter') -> None: ...

def filter(self, reading: QDistanceReading) -> bool: ...
def filter(self, reading: QDistanceReading) -> bool: ... # type: ignore[override]


class QDistanceSensor(QSensor):
Expand All @@ -308,7 +308,7 @@ class QGyroscopeFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QGyroscopeFilter') -> None: ...

def filter(self, reading: QGyroscopeReading) -> bool: ...
def filter(self, reading: QGyroscopeReading) -> bool: ... # type: ignore[override]


class QGyroscope(QSensor):
Expand All @@ -331,7 +331,7 @@ class QHolsterFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QHolsterFilter') -> None: ...

def filter(self, reading: QHolsterReading) -> bool: ...
def filter(self, reading: QHolsterReading) -> bool: ... # type: ignore[override]


class QHolsterSensor(QSensor):
Expand All @@ -356,7 +356,7 @@ class QHumidityFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QHumidityFilter') -> None: ...

def filter(self, reading: QHumidityReading) -> bool: ...
def filter(self, reading: QHumidityReading) -> bool: ... # type: ignore[override]


class QHumiditySensor(QSensor):
Expand All @@ -379,7 +379,7 @@ class QIRProximityFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QIRProximityFilter') -> None: ...

def filter(self, reading: QIRProximityReading) -> bool: ...
def filter(self, reading: QIRProximityReading) -> bool: ... # type: ignore[override]


class QIRProximitySensor(QSensor):
Expand All @@ -406,7 +406,7 @@ class QLidFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QLidFilter') -> None: ...

def filter(self, reading: QLidReading) -> bool: ...
def filter(self, reading: QLidReading) -> bool: ... # type: ignore[override]


class QLidSensor(QSensor):
Expand All @@ -429,7 +429,7 @@ class QLightFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QLightFilter') -> None: ...

def filter(self, reading: QLightReading) -> bool: ...
def filter(self, reading: QLightReading) -> bool: ... # type: ignore[override]


class QLightSensor(QSensor):
Expand Down Expand Up @@ -461,7 +461,7 @@ class QMagnetometerFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QMagnetometerFilter') -> None: ...

def filter(self, reading: QMagnetometerReading) -> bool: ...
def filter(self, reading: QMagnetometerReading) -> bool: ... # type: ignore[override]


class QMagnetometer(QSensor):
Expand Down Expand Up @@ -496,7 +496,7 @@ class QOrientationFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QOrientationFilter') -> None: ...

def filter(self, reading: QOrientationReading) -> bool: ...
def filter(self, reading: QOrientationReading) -> bool: ... # type: ignore[override]


class QOrientationSensor(QSensor):
Expand All @@ -521,7 +521,7 @@ class QPressureFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QPressureFilter') -> None: ...

def filter(self, reading: QPressureReading) -> bool: ...
def filter(self, reading: QPressureReading) -> bool: ... # type: ignore[override]


class QPressureSensor(QSensor):
Expand All @@ -544,7 +544,7 @@ class QProximityFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QProximityFilter') -> None: ...

def filter(self, reading: QProximityReading) -> bool: ...
def filter(self, reading: QProximityReading) -> bool: ... # type: ignore[override]


class QProximitySensor(QSensor):
Expand Down Expand Up @@ -596,7 +596,7 @@ class QTapFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QTapFilter') -> None: ...

def filter(self, reading: QTapReading) -> bool: ...
def filter(self, reading: QTapReading) -> bool: ... # type: ignore[override]


class QTapSensor(QSensor):
Expand Down Expand Up @@ -624,7 +624,7 @@ class QTiltFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QTiltFilter') -> None: ...

def filter(self, reading: QTiltReading) -> bool: ...
def filter(self, reading: QTiltReading) -> bool: ... # type: ignore[override]


class QTiltSensor(QSensor):
Expand All @@ -650,7 +650,7 @@ class QRotationFilter(QSensorFilter):
@typing.overload
def __init__(self, a0: 'QRotationFilter') -> None: ...

def filter(self, reading: QRotationReading) -> bool: ...
def filter(self, reading: QRotationReading) -> bool: ... # type: ignore[override]


class QRotationSensor(QSensor):
Expand Down