fix new rule - empty body #3738#3868
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: pip (https://github.com/pypa/pip)
+ ERROR src/pip/_vendor/requests/sessions.py:132:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
egglog-python (https://github.com/egraphs-good/egglog-python)
+ ERROR python/egglog/builtins.py:449:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/egglog/builtins.py:605:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/egglog/builtins.py:623:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/egglog/builtins.py:660:5-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/egglog/builtins.py:1038:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/egglog/builtins.py:1111:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
steam.py (https://github.com/Gobot1234/steam.py)
+ ERROR steam/abc.py:823:15-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR steam/ext/csgo/client.py:242:19-29: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR steam/types/vdf.py:31:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR steam/types/vdf.py:33:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
jax (https://github.com/google/jax)
+ ERROR jax/_src/array.py:598:7-48: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/sql/column.py:1591:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:194:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:224:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:741:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:785:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:837:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:859:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:890:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1033:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1043:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1078:9-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1121:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1187:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1230:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1256:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1325:9-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1360:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1398:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1436:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1468:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1559:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1591:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1768:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1876:9-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1935:9-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:1996:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2113:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2207:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2255:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2295:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2318:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2451:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2509:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2550:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2590:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2633:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2814:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2916:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:2985:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3071:9-29: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3135:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3364:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3428:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3683:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3729:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3783:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:3813:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4344:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4431:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4477:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4516:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4628:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4727:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4762:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4843:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4910:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:4968:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5035:9-23: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5093:9-38: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5144:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5228:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5352:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5474:9-23: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5573:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5611:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5646:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5690:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5739:9-34: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5756:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5794:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5840:9-26: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5903:9-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:5973:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6003:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6136:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6172:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6231:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6276:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6307:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6343:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6374:9-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6510:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6615:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:6740:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7140:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7156:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7188:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7229:9-23: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7239:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7244:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7249:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7254:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/dataframe.py:7259:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:71:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:123:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:175:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:251:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:347:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:360:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:373:9-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR python/pyspark/sql/window.py:400:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
prefect (https://github.com/PrefectHQ/prefect)
+ ERROR src/prefect/flows.py:2379:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/concurrency/lease_storage/__init__.py:31:15-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/concurrency/lease_storage/__init__.py:59:15-36: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/concurrency/lease_storage/__init__.py:63:15-37: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/concurrency/lease_storage/__init__.py:65:15-37: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:111:15-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:151:15-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:168:15-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:185:15-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:201:15-28: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:244:15-31: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/__init__.py:253:15-35: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
colour (https://github.com/colour-science/colour)
+ ERROR colour/hints/__init__.py:673:5-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR colour/hints/__init__.py:676:5-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
Expression (https://github.com/cognitedata/Expression)
+ ERROR expression/core/typing.py:53:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
manticore (https://github.com/trailofbits/manticore)
+ ERROR manticore/native/cpu/abstractcpu.py:271:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ ERROR tests/annotations/behaviors.py:22:5-6: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:451:5-23: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:467:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:469:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:501:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:503:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:796:13-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1072:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1085:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1097:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1146:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1149:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1161:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1164:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1174:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1253:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1287:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1322:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/declarations.py:1357:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:16:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:32:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:55:9-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:58:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:71:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:74:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/annotations/mypy_checks.py:87:9-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/hydra_zen/typing/_builds_overloads.py:229:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/hydra_zen/typing/_builds_overloads.py:468:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/hydra_zen/typing/_builds_overloads.py:654:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
antidote (https://github.com/Finistere/antidote)
+ ERROR tests/core/test_catalog.py:225:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_catalog.py:238:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_catalog.py:258:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_thread_safety.py:272:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:137:17-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:143:17-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:150:21-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:157:21-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:171:17-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:178:21-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:202:21-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/core/test_type_hints_locals.py:209:25-31: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/injectable/test_injectable.py:113:13-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/injectable/test_provider.py:53:13-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_custom.py:362:13-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_custom.py:386:13-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:119:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:123:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:127:9-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:300:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:306:13-29: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:312:13-30: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:318:13-32: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:324:13-34: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:329:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:333:9-25: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:337:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:342:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:350:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:357:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:364:9-31: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:371:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:378:9-28: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:385:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:392:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:538:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:542:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:560:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_function.py:585:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:142:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:435:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:441:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:447:13-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:451:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:455:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:463:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:665:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:669:9-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:689:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/interface/test_lazy.py:741:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/lazy/test_lazy.py:286:13-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/lazy/test_lazy.py:293:13-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/lazy/test_lazy.py:301:17-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/lazy/test_lazy.py:308:17-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/lazy/test_lazy.py:316:17-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR tests/lib/lazy/test_lazy.py:324:17-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1014:13-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1017:13-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1026:13-23: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1029:13-23: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1035:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1068:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1263:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1266:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1278:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1281:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1369:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1372:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1384:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR src/antidote/lib/interface_ext/__init__.py:1387:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
ibis (https://github.com/ibis-project/ibis)
+ ERROR ibis/backends/bigquery/tests/system/udf/test_udf_execute.py:157:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/bigquery/tests/system/udf/test_udf_execute.py:179:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_builtin.py:9:5-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_client.py:305:5-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_client.py:309:5-39: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_client.py:313:5-22: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_client.py:332:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_client.py:336:5-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_functions.py:475:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/clickhouse/tests/test_functions.py:490:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:13:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:17:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:21:5-20: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:25:5-28: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:29:5-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:33:5-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:57:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:64:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:68:5-9: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:72:5-9: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/duckdb/tests/test_udf.py:175:9-32: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/flink/tests/test_udf.py:8:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/polars/tests/test_udf.py:58:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/polars/tests/test_udf.py:110:9-24: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/pyspark/tests/test_udf.py:24:5-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/snowflake/tests/test_udf.py:16:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/snowflake/tests/test_udf.py:20:5-27: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/snowflake/tests/test_udf.py:25:5-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/snowflake/tests/test_udf.py:29:5-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/backends/snowflake/tests/test_udf.py:71:5-30: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/common/tests/test_patterns.py:332:13-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/common/tests/test_patterns.py:334:13-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/tests/expr/test_udf.py:100:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/tests/expr/test_udf.py:142:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/tests/expr/test_udf.py:152:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR ibis/tests/expr/test_udf.py:171:9-37: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
mypy (https://github.com/python/mypy)
+ ERROR mypyc/test-data/fixtures/ir.py:105:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:106:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:107:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:108:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:114:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:115:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:116:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:119:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:124:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:125:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:126:9-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:127:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:128:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:129:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:130:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:131:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:132:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:133:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:134:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:135:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:137:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:138:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:139:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:158:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:159:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:160:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:161:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:178:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:179:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:180:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:181:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:182:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:187:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:188:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:189:9-18: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:190:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:191:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:192:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:201:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:207:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:208:9-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:209:9-19: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:210:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:211:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:235:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:236:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:241:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:242:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:256:9-17: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:259:9-21: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:314:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:315:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:321:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:322:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:342:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:343:9-15: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:344:9-16: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:394:5-13: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:405:5-9: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:406:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:407:5-12: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:411:5-14: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:417:5-8: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:428:5-11: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:430:5-8: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:431:5-8: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:432:5-9: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:433:5-10: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:434:5-8: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
+ ERROR mypyc/test-data/fixtures/ir.py:435:5-8: Function body cannot consist only of `...` when the return type is not `None` [empty-body]
|
Primer Diff Classification✅ 13 improvement(s) | 13 project(s) total | +334 errors 13 improvement(s) across pip, egglog-python, steam.py, jax, spark, prefect, colour, Expression, manticore, hydra-zen, antidote, ibis, mypy.
Detailed analysis✅ Improvement (13)pip (+1)
egglog-python (+6)
Notably, the file contains dozens of methods with All flagged methods are decorated with
steam.py (+4)
Per-category reasoning:
jax (+1)
However, in this specific JAX codebase, the That said, the error is technically correct from a static analysis perspective: without understanding the decorator's runtime behavior, a function with body Since mypy also flags this, and the check is correct from a pure type-checking perspective (the function body as written doesn't satisfy the return type), this is a legitimate new check being applied correctly. The fact that the decorator replaces the body at runtime is not something the type checker is expected to understand without special-casing.
spark (+101)
prefect (+12)
colour (+2)
Expression (+1)
manticore (+1)
hydra-zen (+29)
antidote (+70)
ibis (+36)
mypy (+70)
The new The 18 pyright matches likely correspond to functions where pyright also flags empty bodies (pyright has This is a regression — the new rule is producing false positives on a file that is semantically a stub file despite having a
Was this helpful? React with 👍 or 👎 Classification by primer-classifier (13 LLM) |
Summary
Fixes #3738
Added empty-body error kind and docs
Track ellipsis-only function bodies through binding/solving and emit when None is not assignable to the annotated return
Exempt .pyi, protocols, abstract methods, overloads, and if TYPE_CHECKING
Test Plan
add test