Skip to content

Conversation

@qequ
Copy link
Contributor

@qequ qequ commented Nov 16, 2025

Type of Changes

Type
πŸ› Bug fix
βœ“ ✨ New feature
πŸ”¨ Refactoring
βœ“ πŸ“œ Docs

Description

This PR implements a new type annotation checker for Pylint that helps enforce the presence of type annotations in Python code. As discussed in #3853, type annotations improve code readability and enable better static analysis.

What's New

Two New Convention-Level Checkers

C2901: missing-return-type-annotation

Detects functions and methods without return type annotations.

def calculate(x, y):  # C2901: Missing return type annotation
    return x + y

def fixed(x: int, y: int) -> int:  # OK
    return x + y

C2902: missing-param-type-annotation

Detects function/method parameters without type annotations.

def multiply(x, y) -> int:  # C2902: Missing type annotation for 'x' and 'y'
    return x * y

def fixed(x: int, y: int) -> int:  # OK
    return x * y

Key Features

  • Opt-in by default: No breaking changes, disabled by default for backward compatibility
  • Granular control: Enable/disable each check independently
  • Comprehensive coverage:
    • Regular and async functions
    • All parameter types (positional, keyword-only, *args, **kwargs)
  • Intelligent exemptions:
    • self and cls parameters (automatically skipped)
    • __init__ methods (return type check skipped)
    • @abstractmethod, @property decorators
    • @typing.overload stub definitions

Future Enhancements

Following Issue discussion and the Google Python Style Guide model, which requires annotations only for public APIs, it could be added different checks for private/public methods:

- public-method-missing-return-type
- public-method-missing-param-type
- private-method-missing-return-type (opt-in)
- private-method-missing-param-type (opt-in)

Other possible future enhancements can be Variable Annotations, and configurable options in .pylintrc

Closes #3853

qequ added 4 commits November 16, 2025 19:09
Signed-off-by: Alvaro Frias <[email protected]>
Signed-off-by: Alvaro Frias <[email protected]>
Signed-off-by: Alvaro Frias <[email protected]>
Signed-off-by: Alvaro Frias <[email protected]>
Signed-off-by: Alvaro Frias <[email protected]>
@github-actions
Copy link
Contributor

πŸ€– Effect of this PR on checked open source code: πŸ€–

Effect on ansible:
The following messages are now emitted:

  1. missing-return-type-annotation:
    Missing return type annotation for function '_init_global_context'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L30
  2. missing-param-type-annotation:
    Missing type annotation for parameter 'cli_args' in function '_init_global_context'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L30
  3. missing-return-type-annotation:
    Missing return type annotation for function 'cliargs_deferred_get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L36
  4. missing-param-type-annotation:
    Missing type annotation for parameter 'key' in function 'cliargs_deferred_get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L36
  5. missing-param-type-annotation:
    Missing type annotation for parameter 'default' in function 'cliargs_deferred_get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L36
  6. missing-param-type-annotation:
    Missing type annotation for parameter 'shallowcopy' in function 'cliargs_deferred_get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L36
  7. missing-return-type-annotation:
    Missing return type annotation for function 'inner'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/context.py#L45
  8. missing-return-type-annotation:
    Missing return type annotation for function 'set_constant'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/constants.py#L21
  9. missing-param-type-annotation:
    Missing type annotation for parameter 'name' in function 'set_constant'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/constants.py#L21
  10. missing-param-type-annotation:
    Missing type annotation for parameter 'value' in function 'set_constant'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/constants.py#L21
  11. missing-param-type-annotation:
    Missing type annotation for parameter 'export' in function 'set_constant'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/constants.py#L21
  12. missing-return-type-annotation:
    Missing return type annotation for function '_short_name'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/__main__.py#L10
  13. missing-param-type-annotation:
    Missing type annotation for parameter 'name' in function '_short_name'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/__main__.py#L10
  14. missing-return-type-annotation:
    Missing return type annotation for function 'main'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/__main__.py#L14
  15. missing-param-type-annotation:
    Missing type annotation for parameter 'blocks' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L57
  16. missing-return-type-annotation:
    Missing return type annotation for function 'repr'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L79
  17. missing-return-type-annotation:
    Missing return type annotation for function 'str'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L82
  18. missing-return-type-annotation:
    Missing return type annotation for function 'eq'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L104
  19. missing-param-type-annotation:
    Missing type annotation for parameter 'other' in function 'eq'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L104
  20. missing-return-type-annotation:
    Missing return type annotation for function 'get_current_block'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L117
  21. missing-return-type-annotation:
    Missing return type annotation for function 'copy'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L120
  22. missing-param-type-annotation:
    Missing type annotation for parameter 'inventory' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L147
  23. missing-param-type-annotation:
    Missing type annotation for parameter 'play' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L147
  24. missing-param-type-annotation:
    Missing type annotation for parameter 'play_context' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L147
  25. missing-param-type-annotation:
    Missing type annotation for parameter 'variable_manager' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L147
  26. missing-param-type-annotation:
    Missing type annotation for parameter 'all_vars' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L147
  27. missing-param-type-annotation:
    Missing type annotation for parameter 'start_at_done' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L147
  28. missing-return-type-annotation:
    Missing return type annotation for function 'get_host_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L251
  29. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'get_host_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L251
  30. missing-return-type-annotation:
    Missing return type annotation for function 'get_next_task_for_host'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L260
  31. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'get_next_task_for_host'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L260
  32. missing-param-type-annotation:
    Missing type annotation for parameter 'peek' in function 'get_next_task_for_host'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L260
  33. missing-return-type-annotation:
    Missing return type annotation for function '_get_next_task_from_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L279
  34. missing-param-type-annotation:
    Missing type annotation for parameter 'state' in function '_get_next_task_from_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L279
  35. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function '_get_next_task_from_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L279
  36. missing-return-type-annotation:
    Missing return type annotation for function '_set_failed_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L495
  37. missing-param-type-annotation:
    Missing type annotation for parameter 'state' in function '_set_failed_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L495
  38. missing-return-type-annotation:
    Missing return type annotation for function 'mark_host_failed'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L527
  39. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'mark_host_failed'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L527
  40. missing-return-type-annotation:
    Missing return type annotation for function 'get_failed_hosts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L540
  41. missing-return-type-annotation:
    Missing return type annotation for function '_check_failed_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L543
  42. missing-param-type-annotation:
    Missing type annotation for parameter 'state' in function '_check_failed_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L543
  43. missing-return-type-annotation:
    Missing return type annotation for function 'is_failed'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L565
  44. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'is_failed'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L565
  45. missing-return-type-annotation:
    Missing return type annotation for function 'clear_host_errors'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L569
  46. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'clear_host_errors'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L569
  47. missing-return-type-annotation:
    Missing return type annotation for function 'get_active_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L582
  48. missing-param-type-annotation:
    Missing type annotation for parameter 'state' in function 'get_active_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L582
  49. missing-return-type-annotation:
    Missing return type annotation for function 'is_any_block_rescuing'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L594
  50. missing-param-type-annotation:
    Missing type annotation for parameter 'state' in function 'is_any_block_rescuing'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L594
  51. missing-return-type-annotation:
    Missing return type annotation for function '_insert_tasks_into_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L609
  52. missing-param-type-annotation:
    Missing type annotation for parameter 'state' in function '_insert_tasks_into_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L609
  53. missing-param-type-annotation:
    Missing type annotation for parameter 'task_list' in function '_insert_tasks_into_state'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L609
  54. missing-return-type-annotation:
    Missing return type annotation for function 'add_tasks'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L640
  55. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'add_tasks'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L640
  56. missing-param-type-annotation:
    Missing type annotation for parameter 'task_list' in function 'add_tasks'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/play_iterator.py#L640
  57. missing-param-type-annotation:
    Missing type annotation for parameter 'message' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L20
  58. missing-param-type-annotation:
    Missing type annotation for parameter 'interpreter_name' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L20
  59. missing-param-type-annotation:
    Missing type annotation for parameter 'discovery_mode' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L20
  60. missing-return-type-annotation:
    Missing return type annotation for function 'discover_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L26
  61. missing-param-type-annotation:
    Missing type annotation for parameter 'action' in function 'discover_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L26
  62. missing-param-type-annotation:
    Missing type annotation for parameter 'interpreter_name' in function 'discover_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L26
  63. missing-param-type-annotation:
    Missing type annotation for parameter 'discovery_mode' in function 'discover_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L26
  64. missing-param-type-annotation:
    Missing type annotation for parameter 'task_vars' in function 'discover_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/interpreter_discovery.py#L26
  65. missing-return-type-annotation:
    Missing return type annotation for function 'increment'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L42
  66. missing-param-type-annotation:
    Missing type annotation for parameter 'what' in function 'increment'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L42
  67. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'increment'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L42
  68. missing-return-type-annotation:
    Missing return type annotation for function 'decrement'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L49
  69. missing-param-type-annotation:
    Missing type annotation for parameter 'what' in function 'decrement'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L49
  70. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'decrement'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L49
  71. missing-return-type-annotation:
    Missing return type annotation for function 'summarize'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L59
  72. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'summarize'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L59
  73. missing-return-type-annotation:
    Missing return type annotation for function 'set_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L72
  74. missing-param-type-annotation:
    Missing type annotation for parameter 'which' in function 'set_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L72
  75. missing-param-type-annotation:
    Missing type annotation for parameter 'what' in function 'set_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L72
  76. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'set_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L72
  77. missing-return-type-annotation:
    Missing return type annotation for function 'update_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L82
  78. missing-param-type-annotation:
    Missing type annotation for parameter 'which' in function 'update_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L82
  79. missing-param-type-annotation:
    Missing type annotation for parameter 'what' in function 'update_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L82
  80. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'update_custom_stats'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/stats.py#L82
  81. missing-param-type-annotation:
    Missing type annotation for parameter 'playbooks' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L47
  82. missing-param-type-annotation:
    Missing type annotation for parameter 'inventory' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L47
  83. missing-param-type-annotation:
    Missing type annotation for parameter 'variable_manager' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L47
  84. missing-param-type-annotation:
    Missing type annotation for parameter 'loader' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L47
  85. missing-param-type-annotation:
    Missing type annotation for parameter 'passwords' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L47
  86. missing-return-type-annotation:
    Missing return type annotation for function 'run'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L67
  87. missing-return-type-annotation:
    Missing return type annotation for function '_get_serialized_batches'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L260
  88. missing-param-type-annotation:
    Missing type annotation for parameter 'play' in function '_get_serialized_batches'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L260
  89. missing-return-type-annotation:
    Missing return type annotation for function '_generate_retry_inventory'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L306
  90. missing-param-type-annotation:
    Missing type annotation for parameter 'retry_path' in function '_generate_retry_inventory'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L306
  91. missing-param-type-annotation:
    Missing type annotation for parameter 'replay_hosts' in function '_generate_retry_inventory'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/playbook_executor.py#L306
  92. missing-param-type-annotation:
    Missing type annotation for parameter 'host' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L67
  93. missing-param-type-annotation:
    Missing type annotation for parameter 'job_vars' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L67
  94. missing-param-type-annotation:
    Missing type annotation for parameter 'play_context' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L67
  95. missing-param-type-annotation:
    Missing type annotation for parameter 'loader' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L67
  96. missing-param-type-annotation:
    Missing type annotation for parameter 'shared_loader_obj' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L67
  97. missing-param-type-annotation:
    Missing type annotation for parameter 'variable_manager' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L67
  98. missing-return-type-annotation:
    Missing return type annotation for function 'run'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L82
  99. missing-return-type-annotation:
    Missing return type annotation for function '_calculate_delegate_to'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L406
  100. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_calculate_delegate_to'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L406
  101. missing-param-type-annotation:
    Missing type annotation for parameter 'variables' in function '_calculate_delegate_to'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L406
  102. missing-return-type-annotation:
    Missing return type annotation for function '_poll_async_result'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L861
  103. missing-param-type-annotation:
    Missing type annotation for parameter 'result' in function '_poll_async_result'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L861
  104. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_poll_async_result'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L861
  105. missing-param-type-annotation:
    Missing type annotation for parameter 'task_vars' in function '_poll_async_result'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L861
  106. missing-return-type-annotation:
    Missing return type annotation for function '_get_become'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L975
  107. missing-param-type-annotation:
    Missing type annotation for parameter 'name' in function '_get_become'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L975
  108. missing-return-type-annotation:
    Missing return type annotation for function '_get_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L982
  109. missing-param-type-annotation:
    Missing type annotation for parameter 'cvars' in function '_get_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L982
  110. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_get_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L982
  111. missing-param-type-annotation:
    Missing type annotation for parameter 'current_connection' in function '_get_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L982
  112. missing-return-type-annotation:
    Missing return type annotation for function '_set_become_plugin'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1010
  113. missing-param-type-annotation:
    Missing type annotation for parameter 'cvars' in function '_set_become_plugin'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1010
  114. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_set_become_plugin'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1010
  115. missing-param-type-annotation:
    Missing type annotation for parameter 'connection' in function '_set_become_plugin'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1010
  116. missing-return-type-annotation:
    Missing return type annotation for function '_set_plugin_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1046
  117. missing-param-type-annotation:
    Missing type annotation for parameter 'plugin_type' in function '_set_plugin_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1046
  118. missing-param-type-annotation:
    Missing type annotation for parameter 'variables' in function '_set_plugin_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1046
  119. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_set_plugin_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1046
  120. missing-param-type-annotation:
    Missing type annotation for parameter 'task_keys' in function '_set_plugin_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1046
  121. missing-return-type-annotation:
    Missing return type annotation for function '_set_connection_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1071
  122. missing-param-type-annotation:
    Missing type annotation for parameter 'variables' in function '_set_connection_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1071
  123. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_set_connection_options'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1071
  124. missing-return-type-annotation:
    Missing return type annotation for function '_get_action_handler'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1130
  125. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function '_get_action_handler'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1130
  126. missing-return-type-annotation:
    Missing return type annotation for function '_get_action_handler_with_module_context'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1136
  127. missing-return-type-annotation:
    Missing return type annotation for function 'start_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1212
  128. missing-param-type-annotation:
    Missing type annotation for parameter 'play_context' in function 'start_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1212
  129. missing-param-type-annotation:
    Missing type annotation for parameter 'options' in function 'start_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1212
  130. missing-param-type-annotation:
    Missing type annotation for parameter 'task_uuid' in function 'start_connection'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_executor.py#L1212
  131. missing-param-type-annotation:
    Missing type annotation for parameter 'module_fqn' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L173
  132. missing-param-type-annotation:
    Missing type annotation for parameter 'tree' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L173
  133. missing-param-type-annotation:
    Missing type annotation for parameter 'is_pkg_init' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L173
  134. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L173
  135. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L173
  136. missing-return-type-annotation:
    Missing return type annotation for function 'generic_visit'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L210
  137. missing-param-type-annotation:
    Missing type annotation for parameter 'node' in function 'generic_visit'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L210
  138. missing-return-type-annotation:
    Missing return type annotation for function 'visit_Import'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L228
  139. missing-param-type-annotation:
    Missing type annotation for parameter 'node' in function 'visit_Import'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L228
  140. missing-return-type-annotation:
    Missing return type annotation for function 'visit_ImportFrom'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L245
  141. missing-param-type-annotation:
    Missing type annotation for parameter 'node' in function 'visit_ImportFrom'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L245
  142. missing-return-type-annotation:
    Missing return type annotation for function '_slurp'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L311
  143. missing-param-type-annotation:
    Missing type annotation for parameter 'path' in function '_slurp'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L311
  144. missing-return-type-annotation:
    Missing return type annotation for function '_get_shebang'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L319
  145. missing-param-type-annotation:
    Missing type annotation for parameter 'interpreter' in function '_get_shebang'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L319
  146. missing-param-type-annotation:
    Missing type annotation for parameter 'task_vars' in function '_get_shebang'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L319
  147. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function '_get_shebang'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L319
  148. missing-param-type-annotation:
    Missing type annotation for parameter 'remote_is_local' in function '_get_shebang'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L319
  149. missing-param-type-annotation:
    Missing type annotation for parameter 'fq_name_parts' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L379
  150. missing-param-type-annotation:
    Missing type annotation for parameter 'is_ambiguous' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L379
  151. missing-param-type-annotation:
    Missing type annotation for parameter 'child_is_redirected' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L379
  152. missing-param-type-annotation:
    Missing type annotation for parameter 'is_optional' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L379
  153. missing-return-type-annotation:
    Missing return type annotation for function '_handle_redirect'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L404
  154. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_handle_redirect'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L404
  155. missing-return-type-annotation:
    Missing return type annotation for function '_get_module_utils_remainder_parts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L469
  156. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_get_module_utils_remainder_parts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L469
  157. missing-return-type-annotation:
    Missing return type annotation for function '_get_module_utils_remainder'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L473
  158. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_get_module_utils_remainder'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L473
  159. missing-return-type-annotation:
    Missing return type annotation for function '_find_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L477
  160. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_find_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L477
  161. missing-return-type-annotation:
    Missing return type annotation for function '_locate'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L480
  162. missing-param-type-annotation:
    Missing type annotation for parameter 'redirect_first' in function '_locate'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L480
  163. missing-return-type-annotation:
    Missing return type annotation for function '_generate_redirect_shim_source'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L506
  164. missing-param-type-annotation:
    Missing type annotation for parameter 'fq_source_module' in function '_generate_redirect_shim_source'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L506
  165. missing-param-type-annotation:
    Missing type annotation for parameter 'fq_target_module' in function '_generate_redirect_shim_source'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L506
  166. missing-param-type-annotation:
    Missing type annotation for parameter 'fq_name_parts' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L518
  167. missing-param-type-annotation:
    Missing type annotation for parameter 'is_ambiguous' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L518
  168. missing-param-type-annotation:
    Missing type annotation for parameter 'mu_paths' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L518
  169. missing-param-type-annotation:
    Missing type annotation for parameter 'child_is_redirected' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L518
  170. missing-return-type-annotation:
    Missing return type annotation for function '_get_module_utils_remainder_parts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L534
  171. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_get_module_utils_remainder_parts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L534
  172. missing-return-type-annotation:
    Missing return type annotation for function '_find_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L537
  173. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_find_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L537
  174. missing-param-type-annotation:
    Missing type annotation for parameter 'fq_name_parts' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L560
  175. missing-param-type-annotation:
    Missing type annotation for parameter 'is_ambiguous' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L560
  176. missing-param-type-annotation:
    Missing type annotation for parameter 'child_is_redirected' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L560
  177. missing-param-type-annotation:
    Missing type annotation for parameter 'is_optional' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L560
  178. missing-return-type-annotation:
    Missing return type annotation for function '_find_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L573
  179. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_find_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L573
  180. missing-return-type-annotation:
    Missing return type annotation for function '_get_module_utils_remainder_parts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L630
  181. missing-param-type-annotation:
    Missing type annotation for parameter 'name_parts' in function '_get_module_utils_remainder_parts'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L630
  182. missing-return-type-annotation:
    Missing return type annotation for function 'post_init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L649
  183. missing-return-type-annotation:
    Missing return type annotation for function '_is_binary'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L858
  184. missing-param-type-annotation:
    Missing type annotation for parameter 'b_module_data' in function '_is_binary'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L858
  185. missing-return-type-annotation:
    Missing return type annotation for function '_get_ansible_module_fqn'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L865
  186. missing-param-type-annotation:
    Missing type annotation for parameter 'module_path' in function '_get_ansible_module_fqn'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L865
  187. missing-return-type-annotation:
    Missing return type annotation for function '_extract_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1248
  188. missing-param-type-annotation:
    Missing type annotation for parameter 'b_module_data' in function '_extract_interpreter'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1248
  189. missing-param-type-annotation:
    Missing type annotation for parameter 'module_path' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  190. missing-param-type-annotation:
    Missing type annotation for parameter 'module_args' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  191. missing-param-type-annotation:
    Missing type annotation for parameter 'templar' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  192. missing-param-type-annotation:
    Missing type annotation for parameter 'task_vars' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  193. missing-param-type-annotation:
    Missing type annotation for parameter 'module_compression' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  194. missing-param-type-annotation:
    Missing type annotation for parameter 'async_timeout' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  195. missing-param-type-annotation:
    Missing type annotation for parameter 'become_plugin' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  196. missing-param-type-annotation:
    Missing type annotation for parameter 'environment' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  197. missing-param-type-annotation:
    Missing type annotation for parameter 'remote_is_local' in function 'modify_module'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/module_common.py#L1271
  198. missing-param-type-annotation:
    Missing type annotation for parameter 'method' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L71
  199. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L71
  200. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L71
  201. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L88
  202. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L88
  203. missing-return-type-annotation:
    Missing return type annotation for function 'send_display'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L98
  204. missing-param-type-annotation:
    Missing type annotation for parameter 'method' in function 'send_display'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L98
  205. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'send_display'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L98
  206. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'send_display'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L98
  207. missing-return-type-annotation:
    Missing return type annotation for function 'send_prompt'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L103
  208. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'send_prompt'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L103
  209. missing-param-type-annotation:
    Missing type annotation for parameter 'result' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L110
  210. missing-param-type-annotation:
    Missing type annotation for parameter 'signum' in function '_signal_handler'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L200
  211. missing-param-type-annotation:
    Missing type annotation for parameter 'frame' in function '_signal_handler'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L200
  212. missing-return-type-annotation:
    Missing return type annotation for function 'load_callbacks'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L233
  213. missing-return-type-annotation:
    Missing return type annotation for function 'run'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L315
  214. missing-param-type-annotation:
    Missing type annotation for parameter 'play' in function 'run'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L315
  215. missing-return-type-annotation:
    Missing return type annotation for function 'cleanup'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L398
  216. missing-return-type-annotation:
    Missing return type annotation for function '_cleanup_processes'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L408
  217. missing-return-type-annotation:
    Missing return type annotation for function 'get_workers'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L438
  218. missing-return-type-annotation:
    Missing return type annotation for function 'send_callback'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L460
  219. missing-param-type-annotation:
    Missing type annotation for parameter 'method_name' in function 'send_callback'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L460
  220. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'send_callback'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L460
  221. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'send_callback'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/task_queue_manager.py#L460
  222. missing-return-type-annotation:
    Missing return type annotation for function 'get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/process/worker.py#L57
  223. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/process/worker.py#L57
  224. missing-param-type-annotation:
    Missing type annotation for parameter 'kwargs' in function 'get'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/process/worker.py#L57
  225. missing-param-type-annotation:
    Missing type annotation for parameter 'signum' in function '_term'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/process/worker.py#L106
  226. missing-param-type-annotation:
    Missing type annotation for parameter 'frame' in function '_term'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/executor/process/worker.py#L106
  227. missing-param-type-annotation:
    Missing type annotation for parameter 'filename' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L40
  228. missing-param-type-annotation:
    Missing type annotation for parameter 'args' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L40
  229. missing-param-type-annotation:
    Missing type annotation for parameter 'vars' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L40
  230. missing-param-type-annotation:
    Missing type annotation for parameter 'task' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L40
  231. missing-return-type-annotation:
    Missing return type annotation for function 'eq'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L56
  232. missing-param-type-annotation:
    Missing type annotation for parameter 'other' in function 'eq'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L56
  233. missing-return-type-annotation:
    Missing return type annotation for function 'repr'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L66
  234. missing-param-type-annotation:
    Missing type annotation for parameter 'iterator' in function 'process_include_results'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/included_file.py#L70
  235. missing-param-type-annotation:
    Missing type annotation for parameter 'play' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L43
  236. missing-param-type-annotation:
    Missing type annotation for parameter 'parent_block' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L43
  237. missing-param-type-annotation:
    Missing type annotation for parameter 'role' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L43
  238. missing-param-type-annotation:
    Missing type annotation for parameter 'task_include' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L43
  239. missing-param-type-annotation:
    Missing type annotation for parameter 'use_handlers' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L43
  240. missing-param-type-annotation:
    Missing type annotation for parameter 'implicit' in function 'init'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L43
  241. missing-return-type-annotation:
    Missing return type annotation for function 'repr'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L58
  242. missing-return-type-annotation:
    Missing return type annotation for function 'eq'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L61
  243. missing-param-type-annotation:
    Missing type annotation for parameter 'other' in function 'eq'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L61
  244. missing-return-type-annotation:
    Missing return type annotation for function 'ne'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L65
  245. missing-param-type-annotation:
    Missing type annotation for parameter 'other' in function 'ne'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L65
  246. missing-return-type-annotation:
    Missing return type annotation for function 'get_vars'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L69
  247. missing-return-type-annotation:
    Missing return type annotation for function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  248. missing-param-type-annotation:
    Missing type annotation for parameter 'data' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  249. missing-param-type-annotation:
    Missing type annotation for parameter 'play' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  250. missing-param-type-annotation:
    Missing type annotation for parameter 'parent_block' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  251. missing-param-type-annotation:
    Missing type annotation for parameter 'role' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  252. missing-param-type-annotation:
    Missing type annotation for parameter 'task_include' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  253. missing-param-type-annotation:
    Missing type annotation for parameter 'use_handlers' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  254. missing-param-type-annotation:
    Missing type annotation for parameter 'variable_manager' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  255. missing-param-type-annotation:
    Missing type annotation for parameter 'loader' in function 'load'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L85
  256. missing-return-type-annotation:
    Missing return type annotation for function 'is_block'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L91
  257. missing-param-type-annotation:
    Missing type annotation for parameter 'ds' in function 'is_block'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L91
  258. missing-return-type-annotation:
    Missing return type annotation for function 'preprocess_data'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L100
  259. missing-param-type-annotation:
    Missing type annotation for parameter 'ds' in function 'preprocess_data'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L100
  260. missing-return-type-annotation:
    Missing return type annotation for function '_load_block'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L116
  261. missing-param-type-annotation:
    Missing type annotation for parameter 'attr' in function '_load_block'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L116
  262. missing-param-type-annotation:
    Missing type annotation for parameter 'ds' in function '_load_block'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L116
  263. missing-return-type-annotation:
    Missing return type annotation for function '_load_rescue'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L131
  264. missing-param-type-annotation:
    Missing type annotation for parameter 'attr' in function '_load_rescue'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L131
  265. missing-param-type-annotation:
    Missing type annotation for parameter 'ds' in function '_load_rescue'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L131
  266. missing-return-type-annotation:
    Missing return type annotation for function '_load_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L146
  267. missing-param-type-annotation:
    Missing type annotation for parameter 'attr' in function '_load_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L146
  268. missing-param-type-annotation:
    Missing type annotation for parameter 'ds' in function '_load_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L146
  269. missing-return-type-annotation:
    Missing return type annotation for function '_validate_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L161
  270. missing-param-type-annotation:
    Missing type annotation for parameter 'attr' in function '_validate_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L161
  271. missing-param-type-annotation:
    Missing type annotation for parameter 'name' in function '_validate_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L161
  272. missing-param-type-annotation:
    Missing type annotation for parameter 'value' in function '_validate_always'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L161
  273. missing-return-type-annotation:
    Missing return type annotation for function 'get_dep_chain'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L167
  274. missing-return-type-annotation:
    Missing return type annotation for function 'copy'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L176
  275. missing-param-type-annotation:
    Missing type annotation for parameter 'exclude_parent' in function 'copy'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L176
  276. missing-param-type-annotation:
    Missing type annotation for parameter 'exclude_tasks' in function 'copy'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L176
  277. missing-return-type-annotation:
    Missing return type annotation for function '_dupe_task_list'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L177
  278. missing-param-type-annotation:
    Missing type annotation for parameter 'task_list' in function '_dupe_task_list'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L177
  279. missing-param-type-annotation:
    Missing type annotation for parameter 'new_block' in function '_dupe_task_list'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L177
  280. missing-return-type-annotation:
    Missing return type annotation for function 'set_loader'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L221
  281. missing-param-type-annotation:
    Missing type annotation for parameter 'loader' in function 'set_loader'
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/playbook/block.py#L221
  282. missing-return-type-...

This comment was truncated because GitHub allows only 65536 characters in a comment.

This comment was generated for commit 98a3b52

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for this PR, this looks pretty refined already.

@@ -0,0 +1,10 @@
def greet(name): # [missing-param-type-annotation]
Copy link
Member

Choose a reason for hiding this comment

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

Even the bad.py should have return type, right ?

@@ -0,0 +1,6 @@
def calculate_sum(numbers): # [missing-return-type-annotation]
Copy link
Member

Choose a reason for hiding this comment

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

Even the bad py should have param type, right ? :)

with ``--enable=missing-return-type-annotation``.

The check automatically skips:

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can also add function and methods starting with test_ for return-type ? I always found adding -> None in all tests to be rather pointless. But then mypy would disagree and we probably want to agree with mypy. (Btw just gave me an idea of a checker to check that function starting with test_ should not return anything).

@utils.only_required_for_messages(
"missing-return-type-annotation", "missing-param-type-annotation"
)
def visit_asyncfunctiondef(self, node: nodes.AsyncFunctionDef) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def visit_asyncfunctiondef(self, node: nodes.AsyncFunctionDef) -> None:
visit_asyncfunctiondef = visit_functiondef

Sorry I can't select the whole function on mobile (or don't know how to)

):
return

# Emit the message
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Emit the message

Args:
node: The function definition node to check
"""
# Skip abstract methods
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Skip abstract methods

Let's remove the other llm 'what should the llm write next' style comments too.


@pytest.fixture
def msgid():
def msgid() -> str:
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why mypy didn't warn for those.

end_col_offset=7,
)
):
self.checker.visit_functiondef(node)
Copy link
Member

Choose a reason for hiding this comment

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

Great tests (probably). Functional tests are a lot easier to review and write (checking the line number in particular which I didn't do here). Those are faster to run though so let's not rewrite everything unless another maintainer thinks we should.

@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Nov 17, 2025
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.1.0 milestone Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement ✨ Improvement to a component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have a way to require type annotations

2 participants