mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Improve error messages for missing annotations (return type + arguments)

Open charulatalodha opened this issue 7 months ago • 11 comments

Summary

This PR introduces three key improvements to enhance the clarity and usefulness of Mypy's error messages related to missing type annotations. Worked on this as part of PyCon US Sprint 2025


1. Suggest -> None When a Function Lacks a Return Type Annotation

Problem: Currently, Mypy inconsistently suggests adding a -> None return type for functions that do not return a value.

Solution: This PR ensures that all functions missing return type annotations and returning None will include a note suggesting the use of -> None.

Issue Reference: https://github.com/python/mypy/issues/15127#issuecomment-2894520902

Example:

Before:

def f(x):  # E: Function is missing a type annotation  [no-untyped-def]
    pass

After:

def f(x):  # E: Function is missing a type annotation  [no-untyped-def]  # N: Use "-> None" if function does not return a value
    pass

2. Improve ARGUMENT_TYPE_EXPECTED Error Message with Argument Names

Problem: When functions have many parameters, it's difficult to identify which ones are missing type annotations.

Solution: This PR enhances the error message by listing the names of up to the first five arguments missing annotations. If more than five are missing, the message is truncated with an ellipsis (...).

Example 1 (Fewer than 5 missing args):

Before:

def h(x) -> None:  # E: Function is missing a type annotation for one or more arguments  [no-untyped-def]

After:

def h(x) -> None:  # E: Function is missing a type annotation for one or more arguments: "x"  [no-untyped-def]

Example 2 (5 or more missing args):

Before:

def f(x, y, z, a: int, b, c, d, e, f: int) -> int: return 1
# main:2: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

After:

def f(x, y, z, a: int, b, c, d, e, f: int) -> int: return 1
# main:2: error: Function is missing a type annotation for one or more arguments: "x", "y", "z", "b", "c"...  [no-untyped-def]

3. Refactor check_for_missing_annotations()

Change:

  • The check_for_missing_annotations() function has been refactored to separately handle return type annotations and argument annotations.

  • This separation improves code readability and simplifies future enhancements or debugging efforts.

  • This structural change also improves code maintainability and clarity.


Notes

  • All changes are covered by tests.
  • CI passes successfully.
  • These improvements aim to make missing annotations easier to detect and fix, especially in larger codebases.

charulatalodha avatar May 21 '25 15:05 charulatalodha

Diff from mypy_primer, showing the effect of this PR on open source code:

werkzeug (https://github.com/pallets/werkzeug)
+ tests/middleware/test_shared_data.py:14: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/middleware/test_shared_data.py:14: note: Use "-> None" if function does not return a value
+ tests/middleware/test_profiler.py:12: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/middleware/test_profiler.py:21: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/live_apps/streaming_app.py:6: error: Function is missing a return type annotation  [no-untyped-def]
- tests/live_apps/streaming_app.py:7: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/live_apps/standard_app.py:8: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/live_apps/run.py:16: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/live_apps/reloader_app.py:17: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:60: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:60: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:78: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:317: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:317: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:323: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:333: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:39: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:196: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:200: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:200: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:285: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:285: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:336: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:336: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:356: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:452: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:452: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:455: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:458: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:661: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:661: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:881: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_wrappers.py:894: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_wrappers.py:907: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:947: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_wrappers.py:951: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1165: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1165: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:194: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_utils.py:194: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:214: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_utils.py:214: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:267: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_utils.py:269: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_urls.py:82: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_urls.py:82: note: Use "-> None" if function does not return a value
+ tests/test_test.py:25: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:34: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:39: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:54: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:59: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:67: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:175: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:175: note: Use "-> None" if function does not return a value
+ tests/test_test.py:194: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:429: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:467: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:484: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:486: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:542: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:557: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:557: note: Use "-> None" if function does not return a value
+ tests/test_test.py:581: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:609: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:632: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:663: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:666: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:681: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:686: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:711: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:713: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:713: note: Use "-> None" if function does not return a value
- tests/test_test.py:716: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:716: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:738: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:738: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:750: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:766: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:769: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:773: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:773: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:788: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:805: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:812: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:831: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:843: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:851: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:851: note: Use "-> None" if function does not return a value
+ tests/test_test.py:865: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:879: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:896: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:21: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:21: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:47: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:47: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:70: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:70: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:78: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:78: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:115: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:115: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:144: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:144: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:167: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:167: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:180: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:180: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:188: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:188: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:193: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_send_file.py:193: note: Use "-> None" if function does not return a value
+ tests/test_security.py:58: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_security.py:58: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:136: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:136: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:466: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:471: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:518: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:518: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:766: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:766: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:770: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:774: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:792: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:792: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:867: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:899: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:933: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:933: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:955: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:955: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1098: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:1098: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1115: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:1115: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1288: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:1288: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1540: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_routing.py:1540: note: Use "-> None" if function does not return a value
- tests/test_local.py:21: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:34: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:34: note: Use "-> None" if function does not return a value
+ tests/test_local.py:62: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:62: note: Use "-> None" if function does not return a value
+ tests/test_local.py:219: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:236: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:236: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:284: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:284: note: Use "-> None" if function does not return a value
+ tests/test_local.py:292: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:292: note: Use "-> None" if function does not return a value
- tests/test_local.py:299: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:299: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:302: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:302: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:305: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:305: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:308: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:356: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:360: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:387: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:390: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:437: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:471: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:471: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:475: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:475: note: Use "-> None" if function does not return a value
+ tests/test_local.py:489: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:492: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:518: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:524: error: Function is missing a return type annotation  [no-untyped-def]

... (truncated 81 lines) ...

antidote (https://github.com/Finistere/antidote)
+ docs/conf.py:79: error: Function is missing a return type annotation  [no-untyped-def]
+ docs/conf.py:223: error: Function is missing a return type annotation  [no-untyped-def]
+ docs/conf.py:223: note: Use "-> None" if function does not return a value

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments: "yaml"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments: "yaml", "yaml_content"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments: "json_str"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments: "modify_rpath"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli.py:358: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli.py:358: error: Function is missing a type annotation for one or more arguments: "isolation", "skip_dependency_check"  [no-untyped-def]

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/mappings.py:221: error: Function is missing a return type annotation  [no-untyped-def]
+ src/arti/internal/mappings.py:221: note: Use "-> None" if function does not return a value
- src/arti/internal/models.py:146: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- src/arti/internal/models.py:150: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments: "url"  [no-untyped-def]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/_const.py:73: error: Function is missing a type annotation for one or more arguments: "__isinstance", "__vdf_dict"  [no-untyped-def]
- steam/utils.py:167: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:167: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:173: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:173: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:221: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:221: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:227: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:227: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/state.py:167: error: Function is missing a return type annotation  [no-untyped-def]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/web.py:1942: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2013: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2042: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3358: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3480: error: Unused "type: ignore" comment  [unused-ignore]

kornia (https://github.com/kornia/kornia)
+ kornia/feature/dedode/detector.py:25: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/descriptor.py:24: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/decoder.py:27: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/lightglue.py:420: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/base.py:318: error: Unused "type: ignore" comment  [unused-ignore]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:14: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/psql.py:14: note: Use "-> None" if function does not return a value
+ cki_lib/psql.py:59: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/psql.py:64: error: Function is missing a return type annotation  [no-untyped-def]
- cki_lib/mariadb.py:32: error: Function is missing a return type annotation  [no-untyped-def]
- cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments: "bucket_spec"  [no-untyped-def]
+ cki_lib/s3bucket.py:36: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/s3bucket.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/timer.py:13: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timer.py:13: note: Use "-> None" if function does not return a value
+ cki_lib/retrying.py:8: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/retrying.py:22: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/retrying.py:24: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/cki_pipeline/mocks.py:12: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/cki_pipeline/mocks.py:12: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:35: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/cki_pipeline/mocks.py:35: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:47: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/cki_pipeline/mocks.py:47: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:62: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/cki_pipeline/mocks.py:62: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:76: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timeout.py:10: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timeout.py:13: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timeout.py:17: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timeout.py:32: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:124: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:124: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:140: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:261: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:286: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:301: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:343: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:343: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:354: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:354: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:417: error: Function is missing a return type annotation  [no-untyped-def]
- cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments: "data"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:87: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/validate.py:87: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:114: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/validate.py:114: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:127: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/validate.py:127: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments: "kcidb_schema"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:179: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/validate.py:179: note: Use "-> None" if function does not return a value
+ tests/test_session.py:109: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:109: note: Use "-> None" if function does not return a value
+ tests/test_session.py:152: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:152: note: Use "-> None" if function does not return a value
+ tests/test_session.py:168: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:168: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:24: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:24: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:37: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:37: note: Use "-> None" if function does not return a value
+ tests/test_retrying.py:9: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_retrying.py:17: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_retrying.py:17: note: Use "-> None" if function does not return a value
+ tests/test_retrying.py:55: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:35: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:35: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:45: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:45: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:55: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:55: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:66: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:66: note: Use "-> None" if function does not return a value
+ tests/test_misc.py:185: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:206: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:602: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:602: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:22: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:22: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:123: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:128: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:132: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:138: error: Function is missing a return type annotation  [no-untyped-def]
- cki_lib/owners.py:142: error: Function is missing a type annotation  [no-untyped-def]
+ cki_lib/owners.py:142: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:150: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:150: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:155: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:159: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:163: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:172: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/gitlab.py:137: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/gitlab.py:165: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/gitlab.py:178: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:27: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:32: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:43: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:43: note: Use "-> None" if function does not return a value
+ cki_lib/footer.py:51: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:56: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:61: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:65: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:100: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:113: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/footer.py:122: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/cronjob.py:25: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/cronjob.py:25: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:31: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/cronjob.py:31: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:68: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/cronjob.py:68: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:77: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/cronjob.py:77: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:13: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/metrics/__init__.py:13: note: Use "-> None" if function does not return a value
- cki_lib/metrics/__init__.py:38: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/metrics/__init__.py:47: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/metrics/__init__.py:47: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:27: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:27: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:37: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:59: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:59: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:76: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:80: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:84: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:94: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:98: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:102: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:106: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/kcidb/file.py:110: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_metrics.py:89: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_metrics.py:89: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:99: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_metrics.py:99: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:21: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_gitlab.py:21: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:29: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_gitlab.py:29: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:37: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_gitlab.py:37: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:46: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_gitlab.py:46: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:55: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_gitlab.py:55: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:64: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_gitlab.py:64: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:24: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/stomp.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:36: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/stomp.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:41: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/stomp.py:41: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:85: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:128: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:128: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:164: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:222: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:222: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:241: error: Function is missing a return type annotation  [no-untyped-def]
- cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments: "thread_queue", "thread_quit", "thread_dead_channel"  [no-untyped-def]
+ cki_lib/messagequeue.py:310: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:310: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:321: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:321: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:331: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/messagequeue.py:331: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

... (truncated 156 lines) ...

github-actions[bot] avatar May 21 '25 16:05 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_internal.py:6: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_internal.py:6: error: Function is missing a type annotation  [no-untyped-def]
- tests/middleware/test_shared_data.py:9: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/middleware/test_shared_data.py:9: error: Function is missing a type annotation  [no-untyped-def]
+ tests/middleware/test_shared_data.py:14: note: Use "-> None" if function does not return a value
- tests/middleware/test_profiler.py:17: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/middleware/test_profiler.py:17: error: Function is missing a type annotation  [no-untyped-def]
- tests/middleware/test_dispatcher.py:6: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/middleware/test_dispatcher.py:6: error: Function is missing a type annotation  [no-untyped-def]
- tests/live_apps/streaming_app.py:7: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/live_apps/streaming_app.py:7: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:60: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:65: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:65: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:77: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:77: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:87: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:87: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:92: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:92: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:94: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:94: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:154: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:154: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:163: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:163: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:178: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:178: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:221: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:221: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:244: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:244: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:250: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:250: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:259: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:259: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:311: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:311: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:317: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:327: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:327: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wsgi.py:330: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wsgi.py:330: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:53: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:53: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:100: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:100: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:105: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:105: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:112: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:112: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:124: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:124: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:140: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:140: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:149: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:149: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:174: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:174: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:184: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:184: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:194: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:194: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:200: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:212: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:212: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:225: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:225: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:237: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:237: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:282: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:282: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:288: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:288: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:336: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:347: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:347: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:355: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:355: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:363: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:363: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:381: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:381: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:416: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:416: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:442: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:442: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:450: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:450: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:452: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:469: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:469: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:479: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:479: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:514: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:514: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:555: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:555: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:599: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:599: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:611: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:611: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:623: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:623: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:642: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:642: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:661: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:669: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:669: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:677: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:677: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:683: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:683: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:691: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:691: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:708: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:708: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:716: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:716: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:764: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:764: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:790: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:790: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:795: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:795: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:806: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:806: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:828: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:828: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:851: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:851: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:873: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:873: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:881: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:881: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:889: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:889: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:894: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:894: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:906: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:906: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:907: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:907: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:917: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:917: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:922: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:922: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:934: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:934: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:943: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:943: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:951: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:951: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1002: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1002: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1019: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1019: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1034: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1034: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1062: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1062: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1068: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1068: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1074: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1074: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1099: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1099: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1113: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1113: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_wrappers.py:1122: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:1122: error: Function is missing a type annotation  [no-untyped-def]

... (truncated 865 lines) ...

antidote (https://github.com/Finistere/antidote)
+ docs/conf.py:223: note: Use "-> None" if function does not return a value

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments: "yaml"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments: "yaml", "yaml_content"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments: "json_str"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments: "modify_rpath"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli.py:358: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli.py:358: error: Function is missing a type annotation for one or more arguments: "isolation", "skip_dependency_check"  [no-untyped-def]

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/mappings.py:221: note: Use "-> None" if function does not return a value
- src/arti/internal/models.py:146: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- src/arti/internal/models.py:150: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments: "url"  [no-untyped-def]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/_const.py:73: error: Function is missing a type annotation for one or more arguments: "__isinstance", "__vdf_dict"  [no-untyped-def]
- steam/enums.py:98: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/enums.py:98: error: Function is missing a type annotation  [no-untyped-def]
- steam/protobufs/headers.py:71: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/protobufs/headers.py:71: error: Function is missing a type annotation  [no-untyped-def]
- steam/protobufs/headers.py:146: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/protobufs/headers.py:146: error: Function is missing a type annotation  [no-untyped-def]
- steam/ext/commands/errors.py:120: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/ext/commands/errors.py:120: error: Function is missing a type annotation  [no-untyped-def]
- steam/ext/commands/errors.py:130: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/ext/commands/errors.py:130: error: Function is missing a type annotation  [no-untyped-def]
- steam/ext/commands/errors.py:140: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/ext/commands/errors.py:140: error: Function is missing a type annotation  [no-untyped-def]
- steam/utils.py:167: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:167: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:173: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:173: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:221: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:221: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:227: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:227: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/gateway.py:398: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/gateway.py:398: error: Function is missing a type annotation  [no-untyped-def]
- steam/gateway.py:410: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/gateway.py:410: error: Function is missing a type annotation  [no-untyped-def]
- steam/gateway.py:413: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/gateway.py:413: error: Function is missing a type annotation  [no-untyped-def]
- steam/chat.py:577: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/chat.py:577: error: Function is missing a type annotation  [no-untyped-def]
- steam/state.py:167: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/state.py:167: error: Function is missing a type annotation  [no-untyped-def]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/web.py:1942: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2013: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2042: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3358: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3480: error: Unused "type: ignore" comment  [unused-ignore]

kornia (https://github.com/kornia/kornia)
+ kornia/feature/dedode/detector.py:25: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/descriptor.py:24: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/decoder.py:27: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/lightglue.py:420: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/base.py:318: error: Unused "type: ignore" comment  [unused-ignore]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:14: note: Use "-> None" if function does not return a value
- cki_lib/psql.py:43: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/psql.py:43: error: Function is missing a type annotation  [no-untyped-def]
- cki_lib/mariadb.py:32: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/mariadb.py:32: error: Function is missing a type annotation  [no-untyped-def]
- cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments: "bucket_spec"  [no-untyped-def]
+ cki_lib/s3bucket.py:36: note: Use "-> None" if function does not return a value
- cki_lib/s3bucket.py:83: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/s3bucket.py:83: error: Function is missing a type annotation  [no-untyped-def]
+ cki_lib/timer.py:13: note: Use "-> None" if function does not return a value
- cki_lib/timer.py:29: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timer.py:29: error: Function is missing a type annotation  [no-untyped-def]
- cki_lib/timer.py:33: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timer.py:33: error: Function is missing a type annotation  [no-untyped-def]
- cki_lib/timer.py:44: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/timer.py:44: error: Function is missing a type annotation  [no-untyped-def]
+ tests/cki_pipeline/mocks.py:12: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:35: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:47: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:62: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:124: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:343: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:354: note: Use "-> None" if function does not return a value
- cki_lib/misc.py:377: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:377: error: Function is missing a type annotation  [no-untyped-def]
- cki_lib/misc.py:412: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/misc.py:412: error: Function is missing a type annotation  [no-untyped-def]
- cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments: "data"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:87: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:114: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:127: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments: "kcidb_schema"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:179: note: Use "-> None" if function does not return a value
- tests/test_yaml.py:247: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_yaml.py:247: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timer.py:12: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timer.py:12: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timer.py:20: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timer.py:20: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timer.py:35: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timer.py:35: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timer.py:43: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timer.py:43: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timeout.py:13: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timeout.py:13: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timeout.py:15: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timeout.py:15: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timeout.py:21: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timeout.py:21: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_timeout.py:25: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_timeout.py:25: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:28: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:28: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:34: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:34: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:41: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:41: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:48: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:48: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:55: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:55: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:62: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:62: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:69: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:69: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:76: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:76: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:84: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:84: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:93: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:93: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:101: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:101: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_session.py:109: note: Use "-> None" if function does not return a value
- tests/test_session.py:124: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:124: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_session.py:136: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_session.py:136: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_session.py:152: note: Use "-> None" if function does not return a value
+ tests/test_session.py:168: note: Use "-> None" if function does not return a value
- tests/test_s3bucket.py:14: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:14: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:24: note: Use "-> None" if function does not return a value
- tests/test_s3bucket.py:32: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:32: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:37: note: Use "-> None" if function does not return a value
- tests/test_s3bucket.py:45: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:45: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:53: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:53: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:61: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:61: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:67: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:67: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:75: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:75: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:84: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:84: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:93: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:93: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:107: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:107: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:118: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:118: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_s3bucket.py:129: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_s3bucket.py:129: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_retrying.py:17: note: Use "-> None" if function does not return a value
- tests/test_retrying.py:26: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_retrying.py:26: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_retrying.py:35: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_retrying.py:35: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_retrying.py:48: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_retrying.py:48: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_psql.py:18: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:18: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_psql.py:35: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:45: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:55: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:66: note: Use "-> None" if function does not return a value
- tests/test_psql.py:79: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:79: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_psql.py:95: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_psql.py:95: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:21: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:21: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:28: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:28: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:32: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:32: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:36: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:36: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:52: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:52: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:73: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:73: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:93: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:93: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:118: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:118: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:145: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:145: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:151: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:151: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:165: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:165: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:174: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:174: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:182: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:182: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:203: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:203: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:221: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:221: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:232: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:232: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:236: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:236: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:247: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:247: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:263: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:263: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:274: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:274: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:319: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:319: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:329: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:329: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:396: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_misc.py:396: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_misc.py:404: error: Function is missing a return type annotation  [no-untyped-def]

... (truncated 510 lines) ...

github-actions[bot] avatar May 21 '25 21:05 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

werkzeug (https://github.com/pallets/werkzeug)
+ tests/middleware/test_shared_data.py:14: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:60: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:317: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:323: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:323: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:200: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:285: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:285: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:336: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:452: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:661: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:1165: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:194: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:214: note: Use "-> None" if function does not return a value
+ tests/test_urls.py:82: note: Use "-> None" if function does not return a value
+ tests/test_test.py:175: note: Use "-> None" if function does not return a value
+ tests/test_test.py:557: note: Use "-> None" if function does not return a value
- tests/test_test.py:686: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:686: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:713: note: Use "-> None" if function does not return a value
- tests/test_test.py:716: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:716: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:738: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:738: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:773: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:773: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:851: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:21: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:47: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:70: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:78: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:115: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:144: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:167: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:180: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:188: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:193: note: Use "-> None" if function does not return a value
+ tests/test_security.py:58: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:136: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:518: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:766: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:792: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:933: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:955: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1098: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1115: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1288: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1540: note: Use "-> None" if function does not return a value
+ tests/test_local.py:34: note: Use "-> None" if function does not return a value
+ tests/test_local.py:62: note: Use "-> None" if function does not return a value
- tests/test_local.py:236: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:236: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:284: note: Use "-> None" if function does not return a value
+ tests/test_local.py:292: note: Use "-> None" if function does not return a value
- tests/test_local.py:299: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:299: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:302: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:302: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:305: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:305: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:471: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:471: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:475: note: Use "-> None" if function does not return a value
+ tests/test_local.py:527: note: Use "-> None" if function does not return a value
+ tests/test_local.py:530: note: Use "-> None" if function does not return a value
+ tests/test_local.py:603: note: Use "-> None" if function does not return a value
+ tests/test_http.py:107: note: Use "-> None" if function does not return a value
+ tests/test_http.py:118: note: Use "-> None" if function does not return a value
+ tests/test_http.py:356: note: Use "-> None" if function does not return a value
- tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments: "value", "expect"  [no-untyped-def]
+ tests/test_http.py:584: note: Use "-> None" if function does not return a value
+ tests/test_http.py:758: note: Use "-> None" if function does not return a value
+ tests/test_http.py:783: note: Use "-> None" if function does not return a value
+ tests/test_http.py:788: note: Use "-> None" if function does not return a value
+ tests/test_http.py:807: note: Use "-> None" if function does not return a value
+ tests/test_http.py:812: note: Use "-> None" if function does not return a value
+ tests/test_formparser.py:180: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:49: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:134: note: Use "-> None" if function does not return a value
- tests/test_exceptions.py:147: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:147: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_exceptions.py:167: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:167: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_debug.py:114: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:114: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_debug.py:155: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:155: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_debug.py:155: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:224: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:249: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:260: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1183: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1207: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1221: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1232: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1247: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1264: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1274: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1283: note: Use "-> None" if function does not return a value
+ tests/middleware/test_lint.py:32: note: Use "-> None" if function does not return a value
+ tests/middleware/test_http_proxy.py:9: note: Use "-> None" if function does not return a value

antidote (https://github.com/Finistere/antidote)
+ docs/conf.py:223: note: Use "-> None" if function does not return a value

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments: "yaml"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments: "yaml", "yaml_content"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments: "json_str"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments: "modify_rpath"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli.py:358: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli.py:358: error: Function is missing a type annotation for one or more arguments: "isolation", "skip_dependency_check"  [no-untyped-def]

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/mappings.py:221: note: Use "-> None" if function does not return a value
- src/arti/internal/models.py:146: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- src/arti/internal/models.py:150: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments: "url"  [no-untyped-def]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/_const.py:73: error: Function is missing a type annotation for one or more arguments: "__isinstance", "__vdf_dict"  [no-untyped-def]
- steam/utils.py:167: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:167: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:173: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:173: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:221: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:221: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:227: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:227: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/web.py:1942: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2013: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2042: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3358: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3480: error: Unused "type: ignore" comment  [unused-ignore]

kornia (https://github.com/kornia/kornia)
+ kornia/feature/dedode/detector.py:25: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/descriptor.py:24: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/decoder.py:27: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/lightglue.py:420: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/base.py:318: error: Unused "type: ignore" comment  [unused-ignore]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:14: note: Use "-> None" if function does not return a value
- cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments: "bucket_spec"  [no-untyped-def]
+ cki_lib/s3bucket.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/timer.py:13: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:12: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:35: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:47: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:62: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:124: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:343: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:354: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments: "data"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:87: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:114: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:127: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments: "kcidb_schema"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:179: note: Use "-> None" if function does not return a value
+ tests/test_session.py:109: note: Use "-> None" if function does not return a value
+ tests/test_session.py:152: note: Use "-> None" if function does not return a value
+ tests/test_session.py:168: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:24: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:37: note: Use "-> None" if function does not return a value
+ tests/test_retrying.py:17: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:35: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:45: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:55: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:66: note: Use "-> None" if function does not return a value
+ tests/test_misc.py:602: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:22: note: Use "-> None" if function does not return a value
- cki_lib/owners.py:142: error: Function is missing a type annotation  [no-untyped-def]
+ cki_lib/owners.py:142: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:150: note: Use "-> None" if function does not return a value
+ cki_lib/footer.py:43: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:25: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:31: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:68: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:77: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:13: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:47: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:27: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:59: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:89: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:99: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:21: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:29: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:37: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:46: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:55: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:64: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:41: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:128: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:222: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments: "thread_queue", "thread_quit", "thread_dead_channel"  [no-untyped-def]
+ cki_lib/messagequeue.py:310: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:321: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:331: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments: "manual_ack"  [no-untyped-def]
+ cki_lib/messagequeue.py:470: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:498: note: Use "-> None" if function does not return a value
+ cki_lib/krb_ticket_refresher.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:18: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:48: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:100: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:119: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:197: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:371: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:125: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:170: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:209: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:219: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:250: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:261: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:274: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:293: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:344: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:375: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:380: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:386: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:392: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:398: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:404: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:411: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:419: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:426: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:432: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:437: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:444: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:477: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:490: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:516: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:553: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:558: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:563: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:568: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:573: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:579: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:592: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:806: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:926: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:17: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:51: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:61: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:84: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:219: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:228: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:239: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:248: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:360: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:83: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:34: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:63: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:78: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:93: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:108: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:123: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:19: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:29: note: Use "-> None" if function does not return a value

github-actions[bot] avatar May 21 '25 22:05 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

antidote (https://github.com/Finistere/antidote)
+ docs/conf.py:223: note: Use "-> None" if function does not return a value

tornado (https://github.com/tornadoweb/tornado)
+ tornado/web.py:1942: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2013: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2042: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3358: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3480: error: Unused "type: ignore" comment  [unused-ignore]

kornia (https://github.com/kornia/kornia)
+ kornia/feature/dedode/detector.py:25: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/descriptor.py:24: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/decoder.py:27: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/lightglue.py:420: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/base.py:318: error: Unused "type: ignore" comment  [unused-ignore]

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments: "yaml"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments: "yaml", "yaml_content"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments: "json_str"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments: "modify_rpath"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli.py:359: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli.py:359: error: Function is missing a type annotation for one or more arguments: "isolation", "skip_dependency_check"  [no-untyped-def]

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/mappings.py:221: note: Use "-> None" if function does not return a value
- src/arti/internal/models.py:146: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- src/arti/internal/models.py:150: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments: "url"  [no-untyped-def]

werkzeug (https://github.com/pallets/werkzeug)
+ tests/middleware/test_shared_data.py:14: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:60: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:317: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:323: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:323: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:200: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:285: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:285: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:336: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:452: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:661: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:1165: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:194: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:214: note: Use "-> None" if function does not return a value
+ tests/test_urls.py:82: note: Use "-> None" if function does not return a value
+ tests/test_test.py:175: note: Use "-> None" if function does not return a value
+ tests/test_test.py:557: note: Use "-> None" if function does not return a value
- tests/test_test.py:686: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:686: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:713: note: Use "-> None" if function does not return a value
- tests/test_test.py:716: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:716: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:738: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:738: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:773: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:773: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:851: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:21: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:47: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:70: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:78: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:115: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:144: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:167: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:180: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:188: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:193: note: Use "-> None" if function does not return a value
+ tests/test_security.py:58: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:136: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:518: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:766: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:792: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:933: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:955: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1098: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1115: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1288: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1540: note: Use "-> None" if function does not return a value
+ tests/test_local.py:34: note: Use "-> None" if function does not return a value
+ tests/test_local.py:62: note: Use "-> None" if function does not return a value
- tests/test_local.py:236: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:236: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:284: note: Use "-> None" if function does not return a value
+ tests/test_local.py:292: note: Use "-> None" if function does not return a value
- tests/test_local.py:299: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:299: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:302: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:302: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:305: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:305: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:471: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:471: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:475: note: Use "-> None" if function does not return a value
+ tests/test_local.py:527: note: Use "-> None" if function does not return a value
+ tests/test_local.py:530: note: Use "-> None" if function does not return a value
+ tests/test_local.py:603: note: Use "-> None" if function does not return a value
+ tests/test_http.py:107: note: Use "-> None" if function does not return a value
+ tests/test_http.py:118: note: Use "-> None" if function does not return a value
+ tests/test_http.py:356: note: Use "-> None" if function does not return a value
- tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments: "value", "expect"  [no-untyped-def]
+ tests/test_http.py:584: note: Use "-> None" if function does not return a value
+ tests/test_http.py:758: note: Use "-> None" if function does not return a value
+ tests/test_http.py:783: note: Use "-> None" if function does not return a value
+ tests/test_http.py:788: note: Use "-> None" if function does not return a value
+ tests/test_http.py:807: note: Use "-> None" if function does not return a value
+ tests/test_http.py:812: note: Use "-> None" if function does not return a value
+ tests/test_formparser.py:180: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:49: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:134: note: Use "-> None" if function does not return a value
- tests/test_exceptions.py:147: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:147: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_exceptions.py:167: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:167: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_debug.py:114: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:114: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_debug.py:155: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:155: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_debug.py:155: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:224: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:249: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:260: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1183: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1207: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1221: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1232: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1247: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1264: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1274: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1283: note: Use "-> None" if function does not return a value
+ tests/middleware/test_lint.py:32: note: Use "-> None" if function does not return a value
+ tests/middleware/test_http_proxy.py:9: note: Use "-> None" if function does not return a value

xarray (https://github.com/pydata/xarray)
- xarray/conventions.py:415: error: Argument "decode_timedelta" to "decode_cf_variable" has incompatible type "object"; expected "bool | CFTimedeltaCoder | None"  [arg-type]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/_const.py:73: error: Function is missing a type annotation for one or more arguments: "__isinstance", "__vdf_dict"  [no-untyped-def]
- steam/utils.py:167: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:167: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:173: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:173: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:221: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:221: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:227: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:227: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:14: note: Use "-> None" if function does not return a value
- cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments: "bucket_spec"  [no-untyped-def]
+ cki_lib/s3bucket.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/timer.py:13: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:12: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:35: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:47: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:62: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:124: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:343: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:354: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments: "data"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:87: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:114: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:127: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments: "kcidb_schema"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:179: note: Use "-> None" if function does not return a value
+ tests/test_session.py:109: note: Use "-> None" if function does not return a value
+ tests/test_session.py:152: note: Use "-> None" if function does not return a value
+ tests/test_session.py:168: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:24: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:37: note: Use "-> None" if function does not return a value
+ tests/test_retrying.py:17: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:35: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:45: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:55: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:66: note: Use "-> None" if function does not return a value
+ tests/test_misc.py:602: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:22: note: Use "-> None" if function does not return a value
- cki_lib/owners.py:142: error: Function is missing a type annotation  [no-untyped-def]
+ cki_lib/owners.py:142: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:150: note: Use "-> None" if function does not return a value
+ cki_lib/footer.py:43: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:25: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:31: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:68: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:77: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:13: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:47: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:27: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:59: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:89: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:99: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:21: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:29: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:37: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:46: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:55: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:64: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:41: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:128: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:222: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments: "thread_queue", "thread_quit", "thread_dead_channel"  [no-untyped-def]
+ cki_lib/messagequeue.py:310: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:321: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:331: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments: "manual_ack"  [no-untyped-def]
+ cki_lib/messagequeue.py:470: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:498: note: Use "-> None" if function does not return a value
+ cki_lib/krb_ticket_refresher.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:18: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:48: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:100: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:119: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:197: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:371: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:125: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:170: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:209: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:219: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:250: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:261: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:274: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:293: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:344: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:375: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:380: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:386: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:392: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:398: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:404: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:411: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:419: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:426: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:432: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:437: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:444: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:477: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:490: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:516: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:553: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:558: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:563: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:568: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:573: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:579: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:592: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:806: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:926: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:17: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:51: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:61: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:84: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:219: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:228: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:239: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:248: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:360: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:83: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:34: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:63: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:78: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:93: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:108: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:123: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:19: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:29: note: Use "-> None" if function does not return a value

github-actions[bot] avatar May 27 '25 17:05 github-actions[bot]

@JukkaL can you please review. Please let me know if any changes are needed. thanks.

charulatalodha avatar May 27 '25 18:05 charulatalodha

Diff from mypy_primer, showing the effect of this PR on open source code:

antidote (https://github.com/Finistere/antidote)
+ docs/conf.py:223: note: Use "-> None" if function does not return a value

tornado (https://github.com/tornadoweb/tornado)
+ tornado/web.py:1942: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2013: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2042: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3358: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3480: error: Unused "type: ignore" comment  [unused-ignore]

kornia (https://github.com/kornia/kornia)
+ kornia/feature/dedode/detector.py:25: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/descriptor.py:24: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/decoder.py:27: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/lightglue.py:420: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/base.py:318: error: Unused "type: ignore" comment  [unused-ignore]

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments: "yaml"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments: "yaml", "yaml_content"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments: "json_str"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments: "modify_rpath"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli.py:359: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli.py:359: error: Function is missing a type annotation for one or more arguments: "isolation", "skip_dependency_check"  [no-untyped-def]

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/mappings.py:221: note: Use "-> None" if function does not return a value
- src/arti/internal/models.py:146: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- src/arti/internal/models.py:150: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments: "url"  [no-untyped-def]

werkzeug (https://github.com/pallets/werkzeug)
+ tests/middleware/test_shared_data.py:14: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:60: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:317: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:323: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:323: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:200: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:285: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:285: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:336: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:452: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:661: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:1165: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:194: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:214: note: Use "-> None" if function does not return a value
+ tests/test_urls.py:82: note: Use "-> None" if function does not return a value
+ tests/test_test.py:175: note: Use "-> None" if function does not return a value
+ tests/test_test.py:557: note: Use "-> None" if function does not return a value
- tests/test_test.py:686: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:686: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:713: note: Use "-> None" if function does not return a value
- tests/test_test.py:716: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:716: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:738: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:738: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:773: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:773: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:851: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:21: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:47: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:70: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:78: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:115: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:144: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:167: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:180: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:188: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:193: note: Use "-> None" if function does not return a value
+ tests/test_security.py:58: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:136: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:518: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:766: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:792: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:933: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:955: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1098: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1115: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1288: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1540: note: Use "-> None" if function does not return a value
+ tests/test_local.py:34: note: Use "-> None" if function does not return a value
+ tests/test_local.py:62: note: Use "-> None" if function does not return a value
- tests/test_local.py:236: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:236: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:284: note: Use "-> None" if function does not return a value
+ tests/test_local.py:292: note: Use "-> None" if function does not return a value
- tests/test_local.py:299: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:299: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:302: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:302: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:305: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:305: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:471: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:471: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:475: note: Use "-> None" if function does not return a value
+ tests/test_local.py:527: note: Use "-> None" if function does not return a value
+ tests/test_local.py:530: note: Use "-> None" if function does not return a value
+ tests/test_local.py:603: note: Use "-> None" if function does not return a value
+ tests/test_http.py:107: note: Use "-> None" if function does not return a value
+ tests/test_http.py:118: note: Use "-> None" if function does not return a value
+ tests/test_http.py:356: note: Use "-> None" if function does not return a value
- tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments: "value", "expect"  [no-untyped-def]
+ tests/test_http.py:584: note: Use "-> None" if function does not return a value
+ tests/test_http.py:758: note: Use "-> None" if function does not return a value
+ tests/test_http.py:783: note: Use "-> None" if function does not return a value
+ tests/test_http.py:788: note: Use "-> None" if function does not return a value
+ tests/test_http.py:807: note: Use "-> None" if function does not return a value
+ tests/test_http.py:812: note: Use "-> None" if function does not return a value
+ tests/test_formparser.py:180: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:49: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:134: note: Use "-> None" if function does not return a value
- tests/test_exceptions.py:147: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:147: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_exceptions.py:167: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:167: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_debug.py:114: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:114: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_debug.py:155: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:155: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_debug.py:155: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:224: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:249: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:260: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1183: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1207: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1221: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1232: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1247: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1264: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1274: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1283: note: Use "-> None" if function does not return a value
+ tests/middleware/test_lint.py:32: note: Use "-> None" if function does not return a value
+ tests/middleware/test_http_proxy.py:9: note: Use "-> None" if function does not return a value

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/_const.py:73: error: Function is missing a type annotation for one or more arguments: "__isinstance", "__vdf_dict"  [no-untyped-def]
- steam/utils.py:167: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:167: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:173: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:173: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:221: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:221: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:227: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:227: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:14: note: Use "-> None" if function does not return a value
- cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments: "bucket_spec"  [no-untyped-def]
+ cki_lib/s3bucket.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/timer.py:13: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:12: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:35: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:47: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:62: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:124: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:343: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:354: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments: "data"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:87: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:114: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:127: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments: "kcidb_schema"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:179: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:22: note: Use "-> None" if function does not return a value
- cki_lib/owners.py:142: error: Function is missing a type annotation  [no-untyped-def]
+ cki_lib/owners.py:142: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:150: note: Use "-> None" if function does not return a value
+ cki_lib/footer.py:43: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:25: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:31: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:68: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:77: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:13: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:47: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:27: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:59: note: Use "-> None" if function does not return a value
+ tests/test_session.py:109: note: Use "-> None" if function does not return a value
+ tests/test_session.py:152: note: Use "-> None" if function does not return a value
+ tests/test_session.py:168: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:24: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:37: note: Use "-> None" if function does not return a value
+ tests/test_retrying.py:17: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:35: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:45: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:55: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:66: note: Use "-> None" if function does not return a value
+ tests/test_misc.py:602: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:89: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:99: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:21: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:29: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:37: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:46: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:55: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:64: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:41: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:128: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:222: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments: "thread_queue", "thread_quit", "thread_dead_channel"  [no-untyped-def]
+ cki_lib/messagequeue.py:310: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:321: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:331: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments: "manual_ack"  [no-untyped-def]
+ cki_lib/messagequeue.py:470: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:498: note: Use "-> None" if function does not return a value
+ cki_lib/krb_ticket_refresher.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:18: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:48: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:100: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:119: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:197: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:371: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:125: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:170: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:209: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:219: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:250: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:261: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:274: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:293: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:344: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:375: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:380: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:386: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:392: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:398: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:404: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:411: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:419: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:426: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:432: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:437: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:444: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:477: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:490: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:516: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:553: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:558: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:563: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:568: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:573: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:579: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:592: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:806: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:926: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:17: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:51: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:61: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:84: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:219: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:228: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:239: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:248: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:360: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:83: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:34: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:63: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:78: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:93: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:108: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:123: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:19: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:29: note: Use "-> None" if function does not return a value

github-actions[bot] avatar May 27 '25 20:05 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

antidote (https://github.com/Finistere/antidote)
+ docs/conf.py:223: note: Use "-> None" if function does not return a value

typeshed-stats (https://github.com/AlexWaygood/typeshed-stats): 1.64x slower (58.6s -> 96.3s in single noisy sample)

prefect (https://github.com/PrefectHQ/prefect): 1.08x slower (71.1s -> 76.7s in single noisy sample)

tornado (https://github.com/tornadoweb/tornado)
+ tornado/web.py:1942: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2013: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:2042: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3358: error: Unused "type: ignore" comment  [unused-ignore]
+ tornado/web.py:3480: error: Unused "type: ignore" comment  [unused-ignore]

bokeh (https://github.com/bokeh/bokeh): 1.07x slower (79.4s -> 85.0s in single noisy sample)

kornia (https://github.com/kornia/kornia)
+ kornia/feature/dedode/detector.py:25: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/descriptor.py:24: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/dedode/decoder.py:27: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/feature/lightglue.py:420: error: Unused "type: ignore" comment  [unused-ignore]
+ kornia/augmentation/container/base.py:318: error: Unused "type: ignore" comment  [unused-ignore]

pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:408: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:424: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/common.py:439: error: Function is missing a type annotation for one or more arguments: "verbose"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:237: error: Function is missing a type annotation for one or more arguments: "yaml"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/skeleton.py:246: error: Function is missing a type annotation for one or more arguments: "yaml", "yaml_content"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli_xbuildenv.py:29: error: Function is missing a type annotation for one or more arguments: "json_str"  [no-untyped-def]
- pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/recipe/builder.py:743: error: Function is missing a type annotation for one or more arguments: "modify_rpath"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:133: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/recipe/test_graph_builder.py:161: error: Function is missing a type annotation for one or more arguments: "self"  [no-untyped-def]
- pyodide-build/pyodide_build/tests/test_cli.py:359: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyodide-build/pyodide_build/tests/test_cli.py:359: error: Function is missing a type annotation for one or more arguments: "isolation", "skip_dependency_check"  [no-untyped-def]

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/mappings.py:221: note: Use "-> None" if function does not return a value
- src/arti/internal/models.py:146: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- src/arti/internal/models.py:150: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ pyppeteer/launcher.py:222: error: Function is missing a type annotation for one or more arguments: "url"  [no-untyped-def]

werkzeug (https://github.com/pallets/werkzeug)
+ tests/middleware/test_shared_data.py:14: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:60: note: Use "-> None" if function does not return a value
+ tests/test_wsgi.py:317: note: Use "-> None" if function does not return a value
- tests/test_wsgi.py:323: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wsgi.py:323: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:44: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:200: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:285: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_wrappers.py:285: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_wrappers.py:315: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:336: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:452: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:661: note: Use "-> None" if function does not return a value
+ tests/test_wrappers.py:1165: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:194: note: Use "-> None" if function does not return a value
+ tests/test_utils.py:214: note: Use "-> None" if function does not return a value
+ tests/test_urls.py:82: note: Use "-> None" if function does not return a value
+ tests/test_test.py:175: note: Use "-> None" if function does not return a value
+ tests/test_test.py:557: note: Use "-> None" if function does not return a value
- tests/test_test.py:686: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:686: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:713: note: Use "-> None" if function does not return a value
- tests/test_test.py:716: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:716: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:738: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:738: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_test.py:773: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_test.py:773: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_test.py:851: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:21: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:47: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:70: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:78: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:115: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:144: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:167: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:180: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:188: note: Use "-> None" if function does not return a value
+ tests/test_send_file.py:193: note: Use "-> None" if function does not return a value
+ tests/test_security.py:58: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:136: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:518: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:766: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:792: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:933: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:955: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1098: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1115: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1288: note: Use "-> None" if function does not return a value
+ tests/test_routing.py:1540: note: Use "-> None" if function does not return a value
+ tests/test_local.py:34: note: Use "-> None" if function does not return a value
+ tests/test_local.py:62: note: Use "-> None" if function does not return a value
- tests/test_local.py:236: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:236: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:284: note: Use "-> None" if function does not return a value
+ tests/test_local.py:292: note: Use "-> None" if function does not return a value
- tests/test_local.py:299: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:299: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:302: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:302: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:305: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:305: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_local.py:471: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_local.py:471: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_local.py:475: note: Use "-> None" if function does not return a value
+ tests/test_local.py:527: note: Use "-> None" if function does not return a value
+ tests/test_local.py:530: note: Use "-> None" if function does not return a value
+ tests/test_local.py:603: note: Use "-> None" if function does not return a value
+ tests/test_http.py:107: note: Use "-> None" if function does not return a value
+ tests/test_http.py:118: note: Use "-> None" if function does not return a value
+ tests/test_http.py:356: note: Use "-> None" if function does not return a value
- tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ tests/test_http.py:395: error: Function is missing a type annotation for one or more arguments: "value", "expect"  [no-untyped-def]
+ tests/test_http.py:584: note: Use "-> None" if function does not return a value
+ tests/test_http.py:758: note: Use "-> None" if function does not return a value
+ tests/test_http.py:783: note: Use "-> None" if function does not return a value
+ tests/test_http.py:788: note: Use "-> None" if function does not return a value
+ tests/test_http.py:807: note: Use "-> None" if function does not return a value
+ tests/test_http.py:812: note: Use "-> None" if function does not return a value
+ tests/test_formparser.py:180: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:49: note: Use "-> None" if function does not return a value
+ tests/test_exceptions.py:134: note: Use "-> None" if function does not return a value
- tests/test_exceptions.py:147: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:147: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_exceptions.py:167: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_exceptions.py:167: error: Function is missing a type annotation  [no-untyped-def]
- tests/test_debug.py:114: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:114: error: Function is missing a return type annotation  [no-untyped-def]
- tests/test_debug.py:155: error: Function is missing a type annotation  [no-untyped-def]
+ tests/test_debug.py:155: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_debug.py:155: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:224: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:249: note: Use "-> None" if function does not return a value
+ tests/test_debug.py:260: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1183: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1207: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1221: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1232: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1247: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1264: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1274: note: Use "-> None" if function does not return a value
+ tests/test_datastructures.py:1283: note: Use "-> None" if function does not return a value
+ tests/middleware/test_lint.py:32: note: Use "-> None" if function does not return a value
+ tests/middleware/test_http_proxy.py:9: note: Use "-> None" if function does not return a value

discord.py (https://github.com/Rapptz/discord.py): 1.11x slower (270.0s -> 299.4s in single noisy sample)

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:14: note: Use "-> None" if function does not return a value
- cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/metrics/server.py:8: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/s3bucket.py:18: error: Function is missing a type annotation for one or more arguments: "bucket_spec"  [no-untyped-def]
+ cki_lib/s3bucket.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/timer.py:13: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:12: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:35: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:47: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/mocks.py:62: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:124: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:343: note: Use "-> None" if function does not return a value
+ cki_lib/misc.py:354: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:49: error: Function is missing a type annotation for one or more arguments: "data"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:78: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:87: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:114: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:127: note: Use "-> None" if function does not return a value
- cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/kcidb/validate.py:137: error: Function is missing a type annotation for one or more arguments: "kcidb_schema"  [no-untyped-def]
+ cki_lib/kcidb/validate.py:166: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/validate.py:179: note: Use "-> None" if function does not return a value
+ cki_lib/owners.py:22: note: Use "-> None" if function does not return a value
- cki_lib/owners.py:142: error: Function is missing a type annotation  [no-untyped-def]
+ cki_lib/owners.py:142: error: Function is missing a return type annotation  [no-untyped-def]
+ cki_lib/owners.py:150: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:25: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:31: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:68: note: Use "-> None" if function does not return a value
+ cki_lib/cronjob.py:77: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:13: note: Use "-> None" if function does not return a value
+ cki_lib/metrics/__init__.py:47: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:27: note: Use "-> None" if function does not return a value
+ cki_lib/kcidb/file.py:59: note: Use "-> None" if function does not return a value
+ tests/test_session.py:109: note: Use "-> None" if function does not return a value
+ tests/test_session.py:152: note: Use "-> None" if function does not return a value
+ tests/test_session.py:168: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:24: note: Use "-> None" if function does not return a value
+ tests/test_s3bucket.py:37: note: Use "-> None" if function does not return a value
+ tests/test_retrying.py:17: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:35: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:45: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:55: note: Use "-> None" if function does not return a value
+ tests/test_psql.py:66: note: Use "-> None" if function does not return a value
+ tests/test_misc.py:602: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:89: note: Use "-> None" if function does not return a value
+ tests/test_metrics.py:99: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:21: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:29: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:37: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:46: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:55: note: Use "-> None" if function does not return a value
+ tests/test_gitlab.py:64: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/stomp.py:41: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:128: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:222: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:254: error: Function is missing a type annotation for one or more arguments: "thread_queue", "thread_quit", "thread_dead_channel"  [no-untyped-def]
+ cki_lib/messagequeue.py:310: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:321: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:331: note: Use "-> None" if function does not return a value
- cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ cki_lib/messagequeue.py:372: error: Function is missing a type annotation for one or more arguments: "manual_ack"  [no-untyped-def]
+ cki_lib/messagequeue.py:470: note: Use "-> None" if function does not return a value
+ cki_lib/messagequeue.py:498: note: Use "-> None" if function does not return a value
+ cki_lib/krb_ticket_refresher.py:24: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:18: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:36: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:48: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:85: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:100: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:119: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:197: note: Use "-> None" if function does not return a value
+ cki_lib/cki_pipeline.py:371: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:125: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:170: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:209: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:219: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:250: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:261: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:274: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:293: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:344: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:375: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:380: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:386: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:392: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:398: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:404: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:411: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:419: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:426: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:432: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:437: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:444: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:477: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:490: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:516: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:553: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:558: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:563: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:568: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:573: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:579: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:592: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:806: note: Use "-> None" if function does not return a value
+ tests/test_messagequeue.py:926: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:17: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:51: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:61: note: Use "-> None" if function does not return a value
+ tests/test_krb_ticket_refresher.py:84: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:219: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:228: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:239: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:248: note: Use "-> None" if function does not return a value
+ tests/kcidb/test_validate.py:360: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger_multiple.py:83: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:34: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:48: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:63: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:78: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:93: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:108: note: Use "-> None" if function does not return a value
+ tests/cki_pipeline/test_trigger.py:123: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:19: note: Use "-> None" if function does not return a value
+ inttests/test_messagequeue.py:29: note: Use "-> None" if function does not return a value

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/_const.py:73: error: Function is missing a type annotation for one or more arguments: "__isinstance", "__vdf_dict"  [no-untyped-def]
- steam/utils.py:167: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:167: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:173: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:173: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:221: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:221: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]
- steam/utils.py:227: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
+ steam/utils.py:227: error: Function is missing a type annotation for one or more arguments: "_"  [no-untyped-def]

github-actions[bot] avatar Jun 02 '25 18:06 github-actions[bot]

@JukkaL can you please review. Please let me know if any changes are needed. thanks.

charulatalodha avatar Jun 02 '25 21:06 charulatalodha

@charulatalodha Sorry for the delay, this is now on my list of PRs to review next. I'll try to get back to this soon.

JukkaL avatar Jun 05 '25 17:06 JukkaL

The Unused "type: ignore" comment in mypy-primer are surprising, since they indicate that some type checker behavior changed, but the description of the PR suggests it should only change error messages. Do you know what's happening there?

JelleZijlstra avatar Jun 05 '25 20:06 JelleZijlstra

The Unused "type: ignore" comment in mypy-primer are surprising, since they indicate that some type checker behavior changed, but the description of the PR suggests it should only change error messages. Do you know what's happening there?

Thanks for highlighting this, let me take a look at these examples and understand what is the right behavior for args and kwargs.

def __init__(self, encoder: Module, decoder: Module, *args, **kwargs) -> None:  # type: ignore[no-untyped-def]
    super().__init__(*args, **kwargs)
    self.encoder = encoder
    self.decoder = decoder
    

https://github.com/kornia/kornia/blob/main/kornia/feature/dedode/decoder.py#L27

charulatalodha avatar Jun 06 '25 16:06 charulatalodha

The Unused "type: ignore" comment in mypy-primer are surprising, since they indicate that some type checker behavior changed, but the description of the PR suggests it should only change error messages. Do you know what's happening there?

Thanks for highlighting this, let me take a look at these examples and understand what is the right behavior for args and kwargs.

def __init__(self, encoder: Module, decoder: Module, *args, **kwargs) -> None:  # type: ignore[no-untyped-def]
    super().__init__(*args, **kwargs)
    self.encoder = encoder
    self.decoder = decoder

https://github.com/kornia/kornia/blob/main/kornia/feature/dedode/decoder.py#L27

@charulatalodha just a bump on this! Personally I think the type ignore is justified as *args and **kwargs are missing types.

A5rocks avatar Oct 06 '25 18:10 A5rocks