Skip to content

Commit a01eb3b

Browse files
authored
Merge pull request #78 from altendky/ignore_some_liskov
Ignore some Liskov failures in QtSensors
2 parents bac9d71 + 3e3379b commit a01eb3b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

PyQt5-stubs/QtSensors.pyi

+19-19
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class QAccelerometerFilter(QSensorFilter):
6868
@typing.overload
6969
def __init__(self, a0: 'QAccelerometerFilter') -> None: ...
7070

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

7373

7474
class QSensor(QtCore.QObject):
@@ -179,7 +179,7 @@ class QAltimeterFilter(QSensorFilter):
179179
@typing.overload
180180
def __init__(self, a0: 'QAltimeterFilter') -> None: ...
181181

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

184184

185185
class QAltimeter(QSensor):
@@ -210,7 +210,7 @@ class QAmbientLightFilter(QSensorFilter):
210210
@typing.overload
211211
def __init__(self, a0: 'QAmbientLightFilter') -> None: ...
212212

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

215215

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

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

238238

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

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

263263

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

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

286286

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

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

313313

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

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

336336

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

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

361361

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

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

384384

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

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

411411

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

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

434434

435435
class QLightSensor(QSensor):
@@ -461,7 +461,7 @@ class QMagnetometerFilter(QSensorFilter):
461461
@typing.overload
462462
def __init__(self, a0: 'QMagnetometerFilter') -> None: ...
463463

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

466466

467467
class QMagnetometer(QSensor):
@@ -496,7 +496,7 @@ class QOrientationFilter(QSensorFilter):
496496
@typing.overload
497497
def __init__(self, a0: 'QOrientationFilter') -> None: ...
498498

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

501501

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

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

526526

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

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

549549

550550
class QProximitySensor(QSensor):
@@ -596,7 +596,7 @@ class QTapFilter(QSensorFilter):
596596
@typing.overload
597597
def __init__(self, a0: 'QTapFilter') -> None: ...
598598

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

601601

602602
class QTapSensor(QSensor):
@@ -624,7 +624,7 @@ class QTiltFilter(QSensorFilter):
624624
@typing.overload
625625
def __init__(self, a0: 'QTiltFilter') -> None: ...
626626

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

629629

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

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

655655

656656
class QRotationSensor(QSensor):

0 commit comments

Comments
 (0)