Skip to content

fix new rule - empty body #3738 - #3868

Closed
asukaminato0721 wants to merge 2 commits into
pyrefly-org:mainfrom
asukaminato0721:3738
Closed

asukaminato0721 wants to merge 2 commits into
pyrefly-org:mainfrom
asukaminato0721:3738

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

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

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@yangdanny97

Copy link
Copy Markdown
Collaborator

✅ Improvement (13) pip (+1) This is a false positive.

hmmmmm

@github-actions

Copy link
Copy Markdown

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/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]

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]

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]

prefect (https://github.com/PrefectHQ/prefect)
+ 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:117: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:157: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:174: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:191: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:207: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:250: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:259: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]

@meta-codesync

meta-codesync Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@yangdanny97 has imported this pull request. If you are a Meta employee, you can view this in D113083836.

@stroxler stroxler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 7811850 Jul 24, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 24, 2026
@meta-codesync

meta-codesync Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@yangdanny97 merged this pull request in 7811850.

@asukaminato0721
asukaminato0721 deleted the 3738 branch July 24, 2026 04:44
avokin2 pushed a commit to avokin2/pyrefly that referenced this pull request Aug 12, 2026
Summary:
Fixes pyrefly-org#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

Pull Request resolved: pyrefly-org#3868

Test Plan: add test

Reviewed By: stroxler

Differential Revision: D113083836

Pulled By: yangdanny97

fbshipit-source-id: 41716d2a6284806ed1286f21fcfc9dbdfd6a3111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new rule - empty body

3 participants