sarj-python-lint 1.124.0__tar.gz → 1.126.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/PKG-INFO +1 -1
  2. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/pyproject.toml +1 -1
  3. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +21 -9
  4. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +245 -65
  5. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/.gitignore +0 -0
  6. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/LICENSE +0 -0
  7. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/README.md +0 -0
  8. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/__init__.py +0 -0
  9. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/__main__.py +0 -0
  10. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_analysis_session.py +0 -0
  11. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix.py +0 -0
  12. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
  13. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
  14. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
  15. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
  16. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
  17. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
  18. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
  19. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
  20. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
  21. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
  22. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
  23. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_security.py +0 -0
  24. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
  25. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
  26. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
  27. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_file_context.py +0 -0
  28. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_filesystem.py +0 -0
  29. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_fixes.py +0 -0
  30. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_parallel.py +0 -0
  31. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
  32. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_python_target.py +0 -0
  33. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
  34. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
  35. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_secret_names.py +0 -0
  36. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_source.py +0 -0
  37. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/_version.py +0 -0
  38. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/application_logging.py +0 -0
  39. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/autofix.py +0 -0
  40. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/benchmark.py +0 -0
  41. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/cast_access.py +0 -0
  42. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
  43. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/json_boundary.py +0 -0
  44. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/py.typed +0 -0
  45. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/ratchet.py +0 -0
  46. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rule_base.py +0 -0
  47. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rule_metadata.py +0 -0
  48. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/__init__.py +0 -0
  49. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
  50. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
  51. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
  52. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
  53. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
  54. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
  55. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
  56. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
  57. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
  58. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_comments.py +0 -0
  59. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
  60. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
  61. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
  62. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
  63. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
  64. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
  65. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_exports.py +0 -0
  66. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
  67. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
  68. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
  69. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
  70. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
  71. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_imports.py +0 -0
  72. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
  73. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
  74. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
  75. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
  76. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_logging.py +0 -0
  77. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
  78. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
  79. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
  80. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
  81. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
  82. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
  83. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
  84. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
  85. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_paths.py +0 -0
  86. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
  87. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
  88. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
  89. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
  90. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
  91. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
  92. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_registry.py +0 -0
  93. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
  94. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
  95. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
  96. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
  97. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
  98. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
  99. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
  100. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
  101. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_sql.py +0 -0
  102. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
  103. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
  104. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
  105. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
  106. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
  107. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
  108. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
  109. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
  110. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
  111. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
  112. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
  113. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
  114. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
  115. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
  116. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
  117. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
  118. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
  119. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
  120. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
  121. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
  122. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
  123. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
  124. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
  125. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
  126. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
  127. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
  128. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
  129. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
  130. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
  131. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
  132. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
  133. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
  134. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
  135. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
  136. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
  137. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
  138. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
  139. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
  140. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
  141. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
  142. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
  143. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
  144. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
  145. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
  146. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
  147. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
  148. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
  149. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
  150. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
  151. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
  152. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
  153. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
  154. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
  155. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
  156. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
  157. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
  158. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
  159. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
  160. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
  161. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
  162. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
  163. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
  164. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
  165. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
  166. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
  167. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
  168. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
  169. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
  170. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
  171. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
  172. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
  173. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
  174. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
  175. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
  176. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
  177. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
  178. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
  179. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
  180. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
  181. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
  182. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
  183. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
  184. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
  185. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
  186. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
  187. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
  188. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
  189. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
  190. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
  191. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
  192. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
  193. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
  194. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
  195. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
  196. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
  197. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
  198. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
  199. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
  200. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
  201. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
  202. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
  203. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
  204. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
  205. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
  206. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
  207. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
  208. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
  209. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
  210. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
  211. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
  212. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
  213. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
  214. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
  215. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
  216. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
  217. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
  218. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
  219. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
  220. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
  221. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
  222. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
  223. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
  224. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
  225. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
  226. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
  227. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
  228. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
  229. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
  230. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
  231. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
  232. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
  233. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
  234. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
  235. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
  236. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
  237. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
  238. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
  239. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
  240. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
  241. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
  242. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
  243. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
  244. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
  245. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
  246. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
  247. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
  248. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
  249. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
  250. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
  251. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
  252. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
  253. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
  254. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
  255. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
  256. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
  257. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
  258. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
  259. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
  260. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
  261. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
  262. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
  263. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
  264. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
  265. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
  266. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
  267. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
  268. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
  269. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
  270. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
  271. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
  272. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
  273. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
  274. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
  275. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
  276. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
  277. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
  278. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
  279. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
  280. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
  281. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
  282. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
  283. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
  284. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
  285. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
  286. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
  287. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
  288. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
  289. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
  290. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
  291. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
  292. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
  293. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
  294. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
  295. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
  296. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
  297. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
  298. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
  299. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
  300. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
  301. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
  302. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
  303. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
  304. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
  305. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
  306. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
  307. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
  308. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
  309. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
  310. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
  311. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
  312. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
  313. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
  314. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
  315. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
  316. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
  317. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
  318. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
  319. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
  320. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
  321. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
  322. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
  323. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
  324. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
  325. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
  326. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/sql_literals.py +0 -0
  327. {sarj_python_lint-1.124.0 → sarj_python_lint-1.126.0}/src/sarj_python_lint/suppression_policy.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sarj-python-lint
3
- Version: 1.124.0
3
+ Version: 1.126.0
4
4
  Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
5
5
  Project-URL: Homepage, https://code-standards.sarj.ai/rules/python/
6
6
  Project-URL: Documentation, https://code-standards.sarj.ai/rules/python/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sarj-python-lint"
3
- version = "1.124.0"
3
+ version = "1.126.0"
4
4
  description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "sarj-ai" }]
@@ -36,7 +36,17 @@ _MAX_PARTS = 128
36
36
  _MAX_BYTES = 8192
37
37
  _UNKNOWN = "\x00"
38
38
  _BAD = "import httpx\nACCOUNT = '0123456789abcdef0123456789abcdef'\nhttpx.get(f'https://api.cloudflare.com/client/v4/accounts/{ACCOUNT}/workers/scripts')\n"
39
- _GOOD = "from typing import Annotated\nimport httpx\nfrom pydantic import Field\nfrom pydantic_settings import BaseSettings\nclass Settings(BaseSettings):\n cloudflare_account_id: Annotated[str, Field(pattern=r'^[a-fA-F0-9]{32}$')]\nsettings = Settings()\nhttpx.get(f'https://api.cloudflare.com/client/v4/accounts/{settings.cloudflare_account_id}/workers/scripts')\n"
39
+ _GOOD = (
40
+ "from typing import Annotated\nimport httpx\nfrom pydantic import Field\n"
41
+ "from pydantic_settings import BaseSettings\n"
42
+ "class Settings(BaseSettings):\n"
43
+ " cloudflare_account_id: Annotated[str, Field(min_length=32, max_length=32, pattern=r'^[a-fA-F0-9]+$')]\n"
44
+ "def publish(settings: Settings):\n"
45
+ " return httpx.post(f'https://api.cloudflare.com/client/v4/accounts/{settings.cloudflare_account_id}/workers/scripts')\n"
46
+ "def list_scripts(settings: Settings):\n"
47
+ " return httpx.get(f'https://api.cloudflare.com/client/v4/accounts/{settings.cloudflare_account_id}/workers/scripts')\n"
48
+ "settings = Settings()\npublish(settings)\nlist_scripts(settings)\n"
49
+ )
40
50
 
41
51
 
42
52
  class _Part(NamedTuple):
@@ -56,9 +66,10 @@ class PreferConfiguredCloudScope(Rule):
56
66
  "Reusing the script in another environment can target the original account even when its credentials change."
57
67
  ),
58
68
  remediation=(
59
- "Read the account ID through validated settings or a required environment variable at startup and inject it "
60
- "into the request builder. Preserve independent security allowlists and fail when required configuration "
61
- "is absent; do not replace a required setting with a production account fallback."
69
+ "Load the account ID into one shared Pydantic/Pydantic Settings object at startup and inject that same "
70
+ "validated object into consumers. Fail before remote effects when required configuration is absent or "
71
+ "invalid; preserve independent security allowlists and existing optional defaults, without a production "
72
+ "account fallback. Reading an environment variable alone is not validation."
62
73
  ),
63
74
  category=RuleCategory.ARCHITECTURE,
64
75
  autofix=AutofixPolicy.NONE,
@@ -71,7 +82,8 @@ class PreferConfiguredCloudScope(Rule):
71
82
  (
72
83
  "Reports each originating account literal once. Unknown account values, arbitrary service endpoints, "
73
84
  "worker names, UUIDs, unused strings and validation allowlists are not inferred. Settings and environment "
74
- "expressions are left to their existing validation controls."
85
+ "expressions are left to their existing validation controls; absence of a finding does not prove "
86
+ "validation or one settings instance. Nested settings and separate runtime/security boundaries remain valid."
75
87
  ),
76
88
  (
77
89
  "Client instances, injected request functions, format calls, environment fallbacks and cross-file values "
@@ -92,7 +104,7 @@ class PreferConfiguredCloudScope(Rule):
92
104
  ),
93
105
  RuleExample(
94
106
  example_id="configured-account-request",
95
- title="Read the deployment account at the boundary",
107
+ title="Construct one Pydantic Settings object and inject it into both consumers",
96
108
  outcome=ExampleOutcome.NO_MATCH,
97
109
  files=(ExampleFile.python("app/publish.py", _GOOD),),
98
110
  focus_path=PurePosixPath("app/publish.py"),
@@ -130,9 +142,9 @@ class PreferConfiguredCloudScope(Rule):
130
142
  origin.lineno,
131
143
  origin.col_offset + 1,
132
144
  self.code,
133
- "This literal Cloudflare account flows to a management API request; read and validate the account "
134
- "from required deployment configuration, then inject it into the request builder. Preserve "
135
- "independent security allowlists.",
145
+ "This literal Cloudflare account flows to a management API request; load the account into one shared "
146
+ "Pydantic-validated settings object at startup, then inject it into consumers. Preserve independent "
147
+ "security allowlists.",
136
148
  severity=Severity.WARNING,
137
149
  )
138
150
  for origin in sorted(origins, key=lambda node: (node.lineno, node.col_offset))
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
  import ast
4
4
  from collections import defaultdict
5
5
  from dataclasses import dataclass
6
- from itertools import pairwise
7
6
  from pathlib import PurePosixPath
8
7
  from typing import TYPE_CHECKING, Literal, final, override
9
8
 
@@ -19,10 +18,13 @@ from sarj_python_lint.rule_base import (
19
18
  Severity,
20
19
  )
21
20
  from sarj_python_lint.rules._ast_index import statement_blocks
21
+ from sarj_python_lint.rules._native_namespace_capability import native_namespace_capability_escapes
22
22
  from sarj_python_lint.rules._paths import is_test_path
23
23
 
24
24
 
25
25
  if TYPE_CHECKING:
26
+ from collections.abc import Iterator
27
+
26
28
  from sarj_python_lint._file_context import PythonFileContext
27
29
  from sarj_python_lint.rules._resource_provenance import ResourceProvenance
28
30
 
@@ -30,6 +32,8 @@ if TYPE_CHECKING:
30
32
  type _Function = ast.FunctionDef | ast.AsyncFunctionDef
31
33
  _MAX_CLASS_NODES = 4096
32
34
  _MAX_FIELDS = 16
35
+ _MAX_GROUPS = 256
36
+ _MAX_MANGLED_NAME_LENGTH = 255
33
37
  _PAIR_ARITY = 2
34
38
  _READ_METHODS = frozenset({"get", "items", "keys", "values", "copy"})
35
39
  _KEY_TYPES = frozenset({"str", "int", "bytes"})
@@ -76,6 +80,13 @@ class _Uses:
76
80
  readers: dict[str, list[ast.expr]]
77
81
 
78
82
 
83
+ @dataclass(frozen=True)
84
+ class _Initialization:
85
+ target: ast.expr
86
+ annotation: ast.expr
87
+ value: ast.expr
88
+
89
+
79
90
  @final
80
91
  class PreferCoordinatedStateOwner(Rule):
81
92
  id = "prefer-coordinated-state-owner"
@@ -97,10 +108,10 @@ class PreferCoordinatedStateOwner(Rule):
97
108
  category=RuleCategory.ARCHITECTURE,
98
109
  autofix=AutofixPolicy.NONE,
99
110
  limitations=(
100
- "Warning only. Names and field counts never establish a finding. One finding per plain module-level class requires adjacent same-key assignments and adjacent same-key removals in different function scopes. Every observed per-key mutation of both fields must participate in these pairs.",
101
- "Distinct private receiver fields must be initialized directly to empty dict literals in an undecorated synchronous __init__, with builtin dict annotations and the same unshadowed str, int or bytes key type. Keys resolve to the same unchanged parameter with that explicit type. Receivers resolve by binding, including captures in nested callbacks. Shadowed parameters are distinct.",
102
- "Subscript writes may insert or overwrite; key existence is not inferred. Only direct subscript assignment/deletion and direct pop(key[, None]) statements are mutations. Subscript reads and get/items/keys/values/copy calls are inventoried. Aliases/escapes, replacement, augmented mutation, other methods, unpaired writes, inherited/decorated classes, class attributes, generic scopes and ambiguous namespaces abstain. Import-proven typing.final is allowed. Classes over 4096 nodes or 16 candidate fields, and test/generated/malformed files, are excluded.",
103
- "The rule does not prove atomic updates, equal key sets, reachable paths, cross-module ownership or runtime value types. Calls can raise and async callbacks can interleave. An await or any intervening statement prevents a pair. Helper-mediated coordination and independently removed entries remain unsupported. Mirrored indexes or protocol-mandated stores can legitimately match; use a reasoned exact-code suppression after review.",
111
+ "Warning only. Names and field counts never establish a finding. Each reported group requires consecutive same-key assignments and consecutive same-key removals in different function scopes. Every observed per-key mutation of every member inside the class must participate. Writers and readers outside that receiver scope are not inferred. Maximal groups are preferred, and disjoint groups can report separately without repeating fields.",
112
+ "Distinct private receiver fields must be initialized directly to empty dict literals or unshadowed dict() calls in a synchronous __init__, with builtin dict annotations and the same unshadowed str, int or bytes key type. Annotations may be inline or unique annotation-only class declarations. Keys resolve to the same unchanged parameter with that explicit type. Receivers resolve by binding, including captures in nested callbacks. Shadowed parameters are distinct; ambiguous rebinding abstains. Private names use lexical class mangling, including explicitly mangled aliases; mangled names over 255 characters abstain.",
113
+ "Subscript writes may insert or overwrite; key existence is not inferred. Only direct subscript assignment/deletion and direct pop(key[, None]) statements are mutations. Subscript reads and get/items/keys/values/copy calls are inventoried. Aliases/escapes, escaped bound methods, class/state reflection including implicit super()/__class__ access, replacement, augmented mutation, other methods, unpaired writes, unknown bases/decorators, stored class attributes, nested classes, generic scopes and ambiguous namespaces abstain. A proven builtin object base and import-proven typing.final class/method decorators are allowed. Classes over 4096 nodes, 16 candidate fields or 256 distinct mutation groups, and test/generated/malformed files, are excluded.",
114
+ "The rule does not prove atomic updates, equal key sets, reachable paths, cross-module ownership or runtime value types. Calls can raise and async callbacks can interleave. Explicit await/yield or implicit async-comprehension suspension inside an operation, or any intervening statement, prevents a group. Helper-mediated coordination and independently removed entries remain unsupported. Mirrored indexes or protocol-mandated stores can legitimately match; use a reasoned exact-code suppression after review.",
104
115
  "No automatic owner migration is safe: construction timing, identity, serializers, callback capture, exceptions and cancellation require scoped review. Existing model-union and task-cancellation rules retain their own contracts. This advisory never authorizes deleting state or cleanup.",
105
116
  ),
106
117
  examples=(
@@ -136,20 +147,35 @@ class PreferCoordinatedStateOwner(Rule):
136
147
  ):
137
148
  return []
138
149
  provenance = context.static_resource_provenance
139
- if provenance.wildcard or provenance.dynamic_namespace or not provenance.builtin_namespace_untouched:
150
+ if (
151
+ provenance.wildcard
152
+ or provenance.dynamic_namespace
153
+ or not provenance.builtin_namespace_untouched
154
+ or native_namespace_capability_escapes(context)
155
+ ):
140
156
  return []
141
157
  findings: list[Diagnostic] = []
142
158
  for owner in context.tree.body:
143
159
  if isinstance(owner, ast.ClassDef) and _plain_class(owner, provenance):
144
- finding = _class_finding(owner, context, provenance)
145
- if finding is not None and not context.suppressions.is_suppressed(finding.line, self.code):
146
- findings.append(finding)
160
+ findings.extend(
161
+ finding
162
+ for finding in _class_findings(owner, context, provenance)
163
+ if not context.suppressions.is_suppressed(finding.line, self.code)
164
+ )
147
165
  return findings
148
166
 
149
167
 
150
168
  def _plain_class(owner: ast.ClassDef, provenance: ResourceProvenance) -> bool:
151
169
  return (
152
- not owner.bases
170
+ (
171
+ not owner.bases
172
+ or (
173
+ len(owner.bases) == 1
174
+ and isinstance(owner.bases[0], ast.Name)
175
+ and owner.bases[0].id == "object"
176
+ and provenance.context.imports.builtin_is_unshadowed("object")
177
+ )
178
+ )
153
179
  and not owner.keywords
154
180
  and not owner.type_params
155
181
  and all(
@@ -157,12 +183,20 @@ def _plain_class(owner: ast.ClassDef, provenance: ResourceProvenance) -> bool:
157
183
  for decorator in owner.decorator_list
158
184
  )
159
185
  and all(
160
- isinstance(member, ast.FunctionDef | ast.AsyncFunctionDef | ast.Pass | ast.Expr) for member in owner.body
186
+ isinstance(member, ast.FunctionDef | ast.AsyncFunctionDef | ast.Pass | ast.Expr)
187
+ or (isinstance(member, ast.AnnAssign) and isinstance(member.target, ast.Name) and member.value is None)
188
+ for member in owner.body
161
189
  )
162
190
  and not any(
163
191
  isinstance(member, ast.FunctionDef | ast.AsyncFunctionDef)
164
192
  and (
165
- member.decorator_list
193
+ any(
194
+ not (
195
+ provenance.imported(decorator, "typing.final")
196
+ or provenance.imported(decorator, "typing_extensions.final")
197
+ )
198
+ for decorator in member.decorator_list
199
+ )
166
200
  or member.type_params
167
201
  or member.name in {"__getattr__", "__getattribute__", "__setattr__", "__delattr__"}
168
202
  )
@@ -171,36 +205,46 @@ def _plain_class(owner: ast.ClassDef, provenance: ResourceProvenance) -> bool:
171
205
  )
172
206
 
173
207
 
174
- def _class_finding(
208
+ def _class_findings(
175
209
  owner: ast.ClassDef, context: PythonFileContext, provenance: ResourceProvenance
176
- ) -> Diagnostic | None:
210
+ ) -> list[Diagnostic]:
177
211
  nodes = _analyzable_nodes(owner)
178
212
  if not nodes:
179
- return None
213
+ return []
180
214
  receivers = _receivers(owner)
181
215
  fields = _constructor_fields(owner, receivers, context, provenance)
182
216
  if not _PAIR_ARITY <= len(fields) <= _MAX_FIELDS:
183
- return None
184
- if _receiver_escapes(nodes, receivers, context, provenance):
185
- return None
217
+ return []
218
+ if _receiver_escapes(nodes, receivers, context, provenance, owner=owner, fields=fields):
219
+ return []
186
220
  operations = _operations(nodes, fields, receivers, context, provenance)
187
221
  uses = _uses(nodes, fields, receivers, operations, context, provenance=provenance)
188
- for names, evidence in sorted(_pairs(nodes, operations).items()):
189
- if uses.invalid.intersection(names):
222
+ groups = _groups(nodes, operations)
223
+ if groups is None:
224
+ return []
225
+ findings: list[Diagnostic] = []
226
+ unavailable = set(uses.invalid)
227
+ for names, evidence in sorted(groups.items(), key=lambda item: (-len(item[0]), item[0])):
228
+ if not unavailable.isdisjoint(names):
190
229
  continue
191
230
  paired = {item.statement for pair in evidence for item in pair}
192
231
  if any(operation.field in names and statement not in paired for statement, operation in operations.items()):
193
232
  continue
194
233
  finding = _evidence_finding(owner, names, evidence, uses.readers, context)
195
234
  if finding is not None:
196
- return finding
197
- return None
235
+ findings.append(finding)
236
+ unavailable.update(names)
237
+ return findings
198
238
 
199
239
 
200
240
  def _analyzable_nodes(owner: ast.ClassDef) -> list[ast.AST]:
201
241
  nodes: list[ast.AST] = []
202
242
  for node in ast.walk(owner):
203
- if len(nodes) >= _MAX_CLASS_NODES or isinstance(node, ast.type_param):
243
+ if (
244
+ len(nodes) >= _MAX_CLASS_NODES
245
+ or isinstance(node, ast.type_param)
246
+ or (isinstance(node, ast.ClassDef) and node is not owner)
247
+ ):
204
248
  return []
205
249
  nodes.append(node)
206
250
  return nodes
@@ -217,7 +261,7 @@ def _receivers(owner: ast.ClassDef) -> set[ast.arg]:
217
261
 
218
262
  def _operations(
219
263
  nodes: list[ast.AST],
220
- fields: dict[str, tuple[ast.AnnAssign, str]],
264
+ fields: dict[str, tuple[ast.stmt, str]],
221
265
  receivers: set[ast.arg],
222
266
  context: PythonFileContext,
223
267
  provenance: ResourceProvenance,
@@ -231,55 +275,129 @@ def _operations(
231
275
 
232
276
 
233
277
  def _receiver_escapes(
234
- nodes: list[ast.AST], receivers: set[ast.arg], context: PythonFileContext, provenance: ResourceProvenance
278
+ nodes: list[ast.AST],
279
+ receivers: set[ast.arg],
280
+ context: PythonFileContext,
281
+ provenance: ResourceProvenance,
282
+ *,
283
+ owner: ast.ClassDef,
284
+ fields: dict[str, tuple[ast.stmt, str]],
235
285
  ) -> bool:
286
+ methods = {
287
+ _attribute_identity(member.name, owner)
288
+ for member in owner.body
289
+ if isinstance(member, ast.FunctionDef | ast.AsyncFunctionDef)
290
+ } - fields.keys()
236
291
  for node in nodes:
292
+ if _implicit_receiver_access(node, receivers, provenance):
293
+ return True
237
294
  if not isinstance(node, ast.Name) or not isinstance(node.ctx, ast.Load):
238
295
  continue
296
+ if _ambiguous_receiver(node, receivers, provenance):
297
+ return True
239
298
  if provenance.binding(node.id, node) not in receivers:
240
299
  continue
241
300
  parent = context.parents.get(node)
242
301
  if not isinstance(parent, ast.Attribute) or parent.value is not node:
243
302
  return True
303
+ if _escaped_bound_method(parent, methods, context, owner):
304
+ return True
305
+ return False
306
+
307
+
308
+ def _implicit_receiver_access(node: ast.AST, receivers: set[ast.arg], provenance: ResourceProvenance) -> bool:
309
+ match node:
310
+ case ast.Attribute():
311
+ return _reflective_attribute(node, provenance)
312
+ case ast.Global(names=names) | ast.Nonlocal(names=names):
313
+ return any(receiver.arg in names for receiver in receivers)
314
+ case ast.Name(id=name, ctx=ast.Load()):
315
+ return name in {"__class__", "super"}
316
+ case _:
317
+ return False
318
+
319
+
320
+ def _reflective_attribute(node: ast.Attribute, provenance: ResourceProvenance) -> bool:
321
+ if node.attr in {"__class__", "__getstate__", "__reduce__", "__reduce_ex__", "__self__", "__closure__"}:
322
+ return True
323
+ if not node.attr.startswith("__") or node.attr.endswith("__"):
324
+ return False
325
+ owner = _lexical_class(node, provenance)
326
+ return owner is not None and len(_attribute_identity(node.attr, owner)) > _MAX_MANGLED_NAME_LENGTH
327
+
328
+
329
+ def _ambiguous_receiver(node: ast.Name, receivers: set[ast.arg], provenance: ResourceProvenance) -> bool:
330
+ scope = provenance.scope(node)
331
+ while scope is not None:
332
+ bindings = provenance.bindings.get(scope, {}).get(node.id, ())
333
+ if bindings:
334
+ return len(bindings) != 1 and any(binding in receivers for binding in bindings)
335
+ scope = provenance.scope(scope)
244
336
  return False
245
337
 
246
338
 
339
+ def _escaped_bound_method(
340
+ node: ast.Attribute, methods: set[str], context: PythonFileContext, owner: ast.ClassDef
341
+ ) -> bool:
342
+ if _attribute_identity(node.attr, owner) not in methods:
343
+ return False
344
+ use = context.parents.get(node)
345
+ return not isinstance(use, ast.Call) or use.func is not node
346
+
347
+
247
348
  def _constructor_fields(
248
349
  owner: ast.ClassDef, receivers: set[ast.arg], context: PythonFileContext, provenance: ResourceProvenance
249
- ) -> dict[str, tuple[ast.AnnAssign, str]]:
350
+ ) -> dict[str, tuple[ast.stmt, str]]:
250
351
  initializers = [
251
352
  member for member in owner.body if isinstance(member, ast.FunctionDef) and member.name == "__init__"
252
353
  ]
253
- return _fields(initializers[0], receivers, context, provenance) if len(initializers) == 1 else {}
354
+ return _fields(initializers[0], owner, receivers, context, provenance) if len(initializers) == 1 else {}
254
355
 
255
356
 
256
- def _pairs(
357
+ def _groups(
257
358
  nodes: list[ast.AST], operations: dict[ast.stmt, _Operation]
258
- ) -> dict[tuple[str, str], list[tuple[_Operation, _Operation]]]:
259
- pairs: dict[tuple[str, str], list[tuple[_Operation, _Operation]]] = defaultdict(list)
359
+ ) -> dict[tuple[str, ...], list[tuple[_Operation, ...]]] | None:
360
+ groups: dict[tuple[str, ...], list[tuple[_Operation, ...]]] = defaultdict(list)
260
361
  for method in (node for node in nodes if isinstance(node, ast.FunctionDef | ast.AsyncFunctionDef)):
261
362
  for block in statement_blocks(method.body):
262
- for left, right in pairwise(block):
263
- a, b = operations.get(left), operations.get(right)
264
- if a is not None and b is not None and a.field != b.field and a.key is b.key and a.kind == b.kind:
265
- names = sorted((a.field, b.field))
266
- pairs[names[0], names[1]].append((a, b))
267
- return pairs
363
+ for names, evidence in _mutation_windows(block, operations):
364
+ groups[names].append(evidence)
365
+ if len(groups) > _MAX_GROUPS:
366
+ return None
367
+ return groups
368
+
369
+
370
+ def _mutation_windows(
371
+ block: list[ast.stmt], operations: dict[ast.stmt, _Operation]
372
+ ) -> Iterator[tuple[tuple[str, ...], tuple[_Operation, ...]]]:
373
+ for index, statement in enumerate(block):
374
+ first = operations.get(statement)
375
+ if first is None:
376
+ continue
377
+ run = [first]
378
+ names = {first.field}
379
+ for following in block[index + 1 : index + _MAX_FIELDS]:
380
+ item = operations.get(following)
381
+ if item is None or item.field in names or item.key is not first.key or item.kind != first.kind:
382
+ break
383
+ run.append(item)
384
+ names.add(item.field)
385
+ yield tuple(sorted(names)), tuple(run)
268
386
 
269
387
 
270
388
  def _evidence_finding(
271
389
  owner: ast.ClassDef,
272
- names: tuple[str, str],
273
- evidence: list[tuple[_Operation, _Operation]],
390
+ names: tuple[str, ...],
391
+ evidence: list[tuple[_Operation, ...]],
274
392
  readers: dict[str, list[ast.expr]],
275
393
  context: PythonFileContext,
276
394
  ) -> Diagnostic | None:
277
- assignments = [a for a, _b in evidence if a.kind == "write"]
278
- removals = [a for a, _b in evidence if a.kind == "remove"]
395
+ assignments = [group[0] for group in evidence if group[0].kind == "write"]
396
+ removals = [group[0] for group in evidence if group[0].kind == "remove"]
279
397
  if (
280
398
  not assignments
281
399
  or not removals
282
- or _scope(assignments[0].statement, context) is _scope(removals[0].statement, context)
400
+ or len({_scope(item.statement, context) for item in (*assignments, *removals)}) < _PAIR_ARITY
283
401
  ):
284
402
  return None
285
403
  writes = ", ".join(_site(item.statement, context) for pair in evidence for item in pair)
@@ -290,7 +408,7 @@ def _evidence_finding(
290
408
  first.lineno,
291
409
  first.col_offset + 1,
292
410
  PreferCoordinatedStateOwner.code,
293
- f"`{owner.name}.{names[0]}` and `{owner.name}.{names[1]}` have paired same-key assignment/removal "
411
+ f"{', '.join(f'`{owner.name}.{name}`' for name in names)} have grouped same-key assignment/removal "
294
412
  f"at {writes}; readers: {reads}. If entry lifetimes must agree, use one typed owner per key; "
295
413
  "independent completion or intentional mirrored stores require review.",
296
414
  severity=Severity.WARNING,
@@ -298,30 +416,87 @@ def _evidence_finding(
298
416
 
299
417
 
300
418
  def _fields(
301
- initializer: ast.FunctionDef, receivers: set[ast.arg], context: PythonFileContext, provenance: ResourceProvenance
302
- ) -> dict[str, tuple[ast.AnnAssign, str]]:
303
- result: dict[str, tuple[ast.AnnAssign, str]] = {}
419
+ initializer: ast.FunctionDef,
420
+ owner: ast.ClassDef,
421
+ receivers: set[ast.arg],
422
+ context: PythonFileContext,
423
+ provenance: ResourceProvenance,
424
+ ) -> dict[str, tuple[ast.stmt, str]]:
425
+ result: dict[str, tuple[ast.stmt, str]] = {}
426
+ annotations: dict[str, list[ast.expr]] = defaultdict(list)
427
+ for member in owner.body:
428
+ if isinstance(member, ast.AnnAssign) and isinstance(member.target, ast.Name) and member.value is None:
429
+ annotations[_attribute_identity(member.target.id, owner)].append(member.annotation)
304
430
  for statement in initializer.body:
305
- if (
306
- not isinstance(statement, ast.AnnAssign)
307
- or not isinstance(statement.value, ast.Dict)
308
- or statement.value.keys
309
- ):
310
- continue
311
- name = _field(statement.target, receivers, provenance)
312
- annotation = statement.annotation
313
- if name is None or not isinstance(annotation, ast.Subscript) or not isinstance(annotation.value, ast.Name):
431
+ assignment = _annotated_assignment(statement, annotations, receivers, provenance)
432
+ if assignment is None:
314
433
  continue
315
- if annotation.value.id != "dict" or not context.imports.builtin_is_unshadowed("dict"):
434
+ if not _empty_dict(assignment.value, context):
316
435
  continue
317
- if not isinstance(annotation.slice, ast.Tuple) or len(annotation.slice.elts) != _PAIR_ARITY:
318
- continue
319
- key = annotation.slice.elts[0]
320
- if isinstance(key, ast.Name) and key.id in _KEY_TYPES and context.imports.builtin_is_unshadowed(key.id):
321
- result[name] = statement, key.id
436
+ name = _field(assignment.target, receivers, provenance)
437
+ key = _dictionary_key(assignment.annotation, context)
438
+ if name is not None and key is not None:
439
+ result[name] = statement, key
322
440
  return result
323
441
 
324
442
 
443
+ def _annotated_assignment(
444
+ statement: ast.stmt,
445
+ annotations: dict[str, list[ast.expr]],
446
+ receivers: set[ast.arg],
447
+ provenance: ResourceProvenance,
448
+ ) -> _Initialization | None:
449
+ if isinstance(statement, ast.AnnAssign):
450
+ return (
451
+ _Initialization(statement.target, statement.annotation, statement.value)
452
+ if statement.value is not None
453
+ else None
454
+ )
455
+ if not isinstance(statement, ast.Assign) or len(statement.targets) != 1:
456
+ return None
457
+ target = statement.targets[0]
458
+ candidates = annotations.get(_field(target, receivers, provenance) or "", [])
459
+ return _Initialization(target, candidates[0], statement.value) if len(candidates) == 1 else None
460
+
461
+
462
+ def _dictionary_key(annotation: ast.expr, context: PythonFileContext) -> str | None:
463
+ if not isinstance(annotation, ast.Subscript) or not isinstance(annotation.value, ast.Name):
464
+ return None
465
+ if annotation.value.id != "dict" or not context.imports.builtin_is_unshadowed("dict"):
466
+ return None
467
+ if not isinstance(annotation.slice, ast.Tuple) or len(annotation.slice.elts) != _PAIR_ARITY:
468
+ return None
469
+ key = annotation.slice.elts[0]
470
+ if isinstance(key, ast.Name) and key.id in _KEY_TYPES and context.imports.builtin_is_unshadowed(key.id):
471
+ return key.id
472
+ return None
473
+
474
+
475
+ def _empty_dict(value: ast.expr | None, context: PythonFileContext) -> bool:
476
+ return (isinstance(value, ast.Dict) and not value.keys) or (
477
+ isinstance(value, ast.Call)
478
+ and isinstance(value.func, ast.Name)
479
+ and value.func.id == "dict"
480
+ and not value.args
481
+ and not value.keywords
482
+ and context.imports.builtin_is_unshadowed("dict")
483
+ )
484
+
485
+
486
+ def _attribute_identity(name: str, owner: ast.ClassDef) -> str:
487
+ prefix = owner.name.lstrip("_")
488
+ return f"_{prefix}{name}" if prefix and name.startswith("__") and not name.endswith("__") else name
489
+
490
+
491
+ def _lexical_class(node: ast.AST, provenance: ResourceProvenance) -> ast.ClassDef | None:
492
+ scope = provenance.scope(node)
493
+ while scope is not None:
494
+ if isinstance(scope, ast.ClassDef):
495
+ return scope
496
+ scope = provenance.scope(scope)
497
+ return None
498
+
499
+
325
500
  def _field(node: ast.AST, receivers: set[ast.arg], provenance: ResourceProvenance) -> str | None:
326
501
  if (
327
502
  isinstance(node, ast.Attribute)
@@ -329,13 +504,14 @@ def _field(node: ast.AST, receivers: set[ast.arg], provenance: ResourceProvenanc
329
504
  and node.attr.startswith("_")
330
505
  and provenance.binding(node.value.id, node.value) in receivers
331
506
  ):
332
- return node.attr
507
+ owner = _lexical_class(node, provenance)
508
+ return _attribute_identity(node.attr, owner) if owner is not None else None
333
509
  return None
334
510
 
335
511
 
336
512
  def _operation(
337
513
  statement: ast.stmt,
338
- fields: dict[str, tuple[ast.AnnAssign, str]],
514
+ fields: dict[str, tuple[ast.stmt, str]],
339
515
  receivers: set[ast.arg],
340
516
  context: PythonFileContext,
341
517
  provenance: ResourceProvenance,
@@ -366,7 +542,11 @@ def _operation(
366
542
  return None
367
543
  if binding.annotation.id != fields[name][1] or not context.imports.builtin_is_unshadowed(binding.annotation.id):
368
544
  return None
369
- if any(isinstance(node, ast.Await | ast.Yield | ast.YieldFrom) for node in ast.walk(statement)):
545
+ if any(
546
+ isinstance(node, ast.Await | ast.Yield | ast.YieldFrom)
547
+ or (isinstance(node, ast.comprehension) and node.is_async)
548
+ for node in ast.walk(statement)
549
+ ):
370
550
  return None
371
551
  return _Operation(name, binding, kind, statement, container)
372
552
 
@@ -381,7 +561,7 @@ def _plain_pop(call: ast.Call) -> bool:
381
561
 
382
562
  def _uses(
383
563
  nodes: list[ast.AST],
384
- fields: dict[str, tuple[ast.AnnAssign, str]],
564
+ fields: dict[str, tuple[ast.stmt, str]],
385
565
  receivers: set[ast.arg],
386
566
  operations: dict[ast.stmt, _Operation],
387
567
  context: PythonFileContext,
@@ -395,7 +575,7 @@ def _uses(
395
575
  if name is None or name not in fields:
396
576
  continue
397
577
  parent = context.parents.get(node)
398
- if isinstance(parent, ast.AnnAssign) and parent is fields[name][0] and parent.target is node:
578
+ if isinstance(parent, ast.AnnAssign | ast.Assign) and parent is fields[name][0]:
399
579
  continue
400
580
  statement = _statement(node, context)
401
581
  if statement is not None and statement in operations and operations[statement].container is node: