sarj-python-lint 1.126.0__tar.gz → 1.127.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 (328) hide show
  1. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/PKG-INFO +1 -1
  2. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/pyproject.toml +1 -1
  3. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +71 -7
  4. sarj_python_lint-1.127.0/src/sarj_python_lint/rules/_generic_payload.py +34 -0
  5. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +47 -45
  6. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +128 -18
  7. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +40 -1
  8. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/.gitignore +0 -0
  9. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/LICENSE +0 -0
  10. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/README.md +0 -0
  11. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/__init__.py +0 -0
  12. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/__main__.py +0 -0
  13. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_analysis_session.py +0 -0
  14. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix.py +0 -0
  15. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
  16. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
  17. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
  18. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
  19. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
  20. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
  21. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
  22. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
  23. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
  24. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
  25. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
  26. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_security.py +0 -0
  27. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
  28. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
  29. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
  30. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_file_context.py +0 -0
  31. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_filesystem.py +0 -0
  32. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_fixes.py +0 -0
  33. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_parallel.py +0 -0
  34. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
  35. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_python_target.py +0 -0
  36. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
  37. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
  38. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_secret_names.py +0 -0
  39. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_source.py +0 -0
  40. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/_version.py +0 -0
  41. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/application_logging.py +0 -0
  42. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/autofix.py +0 -0
  43. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/benchmark.py +0 -0
  44. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/cast_access.py +0 -0
  45. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
  46. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/json_boundary.py +0 -0
  47. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/py.typed +0 -0
  48. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/ratchet.py +0 -0
  49. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rule_base.py +0 -0
  50. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rule_metadata.py +0 -0
  51. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/__init__.py +0 -0
  52. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
  53. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
  54. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
  55. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
  56. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
  57. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
  58. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
  59. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
  60. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
  61. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_comments.py +0 -0
  62. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
  63. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
  64. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
  65. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
  66. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
  67. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_exports.py +0 -0
  68. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
  69. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
  70. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
  71. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
  72. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
  73. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_imports.py +0 -0
  74. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
  75. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
  76. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
  77. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
  78. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_logging.py +0 -0
  79. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
  80. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
  81. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
  82. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
  83. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
  84. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
  85. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
  86. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
  87. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_paths.py +0 -0
  88. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
  89. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
  90. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
  91. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
  92. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
  93. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
  94. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_registry.py +0 -0
  95. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
  96. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
  97. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
  98. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
  99. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
  100. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
  101. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
  102. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
  103. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_sql.py +0 -0
  104. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
  105. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
  106. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
  107. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
  108. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
  109. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
  110. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
  111. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
  112. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
  113. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
  114. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
  115. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
  116. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
  117. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
  118. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
  119. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
  120. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
  121. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
  122. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
  123. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
  124. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
  125. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
  126. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
  127. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
  128. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
  129. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
  130. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
  131. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
  132. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
  133. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
  134. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
  135. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
  136. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
  137. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
  138. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
  139. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
  140. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
  141. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
  142. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
  143. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
  144. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
  145. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
  146. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
  147. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
  148. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
  149. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
  150. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
  151. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
  152. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
  153. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
  154. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
  155. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
  156. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
  157. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
  158. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
  159. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
  160. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
  161. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
  162. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
  163. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
  164. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
  165. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
  166. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
  167. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
  168. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
  169. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
  170. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
  171. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
  172. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
  173. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
  174. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
  175. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
  176. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
  177. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
  178. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
  179. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
  180. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
  181. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
  182. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
  183. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
  184. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
  185. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
  186. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
  187. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
  188. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
  189. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
  190. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
  191. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
  192. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
  193. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
  194. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
  195. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
  196. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
  197. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
  198. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
  199. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
  200. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
  201. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
  202. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
  203. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
  204. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
  205. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
  206. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
  207. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
  208. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
  209. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
  210. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
  211. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
  212. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
  213. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
  214. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
  215. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
  216. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
  217. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
  218. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
  219. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
  220. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
  221. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
  222. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
  223. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
  224. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
  225. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
  226. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
  227. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
  228. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
  229. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
  230. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
  231. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
  232. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
  233. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
  234. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
  235. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
  236. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
  237. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
  238. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
  239. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
  240. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
  241. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
  242. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
  243. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
  244. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
  245. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
  246. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
  247. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
  248. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
  249. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
  250. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
  251. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
  252. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
  253. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
  254. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
  255. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
  256. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
  257. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
  258. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
  259. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
  260. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
  261. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
  262. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
  263. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
  264. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
  265. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
  266. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
  267. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
  268. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
  269. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
  270. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
  271. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
  272. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
  273. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
  274. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
  275. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
  276. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
  277. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
  278. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
  279. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
  280. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
  281. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
  282. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
  283. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
  284. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
  285. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
  286. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
  287. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
  288. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
  289. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
  290. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
  291. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
  292. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
  293. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
  294. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
  295. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
  296. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
  297. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
  298. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
  299. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
  300. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
  301. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
  302. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
  303. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
  304. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
  305. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
  306. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
  307. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
  308. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
  309. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
  310. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
  311. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
  312. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
  313. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
  314. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
  315. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
  316. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
  317. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
  318. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
  319. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
  320. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
  321. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
  322. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
  323. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
  324. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
  325. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
  326. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
  327. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.0}/src/sarj_python_lint/sql_literals.py +0 -0
  328. {sarj_python_lint-1.126.0 → sarj_python_lint-1.127.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.126.0
3
+ Version: 1.127.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.126.0"
3
+ version = "1.127.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" }]
@@ -5,6 +5,7 @@ from dataclasses import dataclass
5
5
  from typing import TYPE_CHECKING, final
6
6
 
7
7
  from sarj_python_lint.rule_base import Diagnostic, Severity
8
+ from sarj_python_lint.rules._generic_payload import plain_parameters, record_parameters, specialized, uses_parameters
8
9
  from sarj_python_lint.rules._imports import TYPING_SOURCES
9
10
  from sarj_python_lint.rules._pydantic_field_contract import MODEL_SOURCES, unique_members
10
11
  from sarj_python_lint.rules._resource_provenance import ResourceProvenance
@@ -383,9 +384,14 @@ class _DataUnions:
383
384
  for node in leaves:
384
385
  if isinstance(node, ast.Constant) and node.value is None:
385
386
  continue
386
- if not isinstance(node, ast.Name) or node.id not in self.classes:
387
+ head = node.value if isinstance(node, ast.Subscript) else node
388
+ if (
389
+ not isinstance(head, ast.Name)
390
+ or head.id not in self.classes
391
+ or not specialized(node, self.classes[head.id].type_params)
392
+ ):
387
393
  return None
388
- variants.add(node.id)
394
+ variants.add(head.id)
389
395
  return variants
390
396
 
391
397
  def _leaves(self, expression: ast.expr) -> list[ast.expr] | None:
@@ -399,9 +405,10 @@ class _DataUnions:
399
405
  if node is None:
400
406
  return None
401
407
  if isinstance(node, ast.Name) and node.id in self.aliases:
402
- if node.id in item.aliases:
408
+ expansion = self._alias_expansion(node.id, item.aliases)
409
+ if expansion is None:
403
410
  return None
404
- pending.append(_Expansion(self.aliases[node.id], item.aliases | {node.id}))
411
+ pending.append(expansion)
405
412
  else:
406
413
  children = self._union_members(node)
407
414
  if children is None:
@@ -410,6 +417,12 @@ class _DataUnions:
410
417
  pending.extend(_Expansion(child, item.aliases) for child in children)
411
418
  return None
412
419
 
420
+ def _alias_expansion(self, name: str, seen: frozenset[str]) -> _Expansion | None:
421
+ declaration = self.declarations[name]
422
+ if name in seen or (isinstance(declaration, ast.TypeAlias) and declaration.type_params):
423
+ return None
424
+ return _Expansion(self.aliases[name], seen | {name})
425
+
413
426
  def _union_members(self, node: ast.expr) -> tuple[ast.expr, ...] | None:
414
427
  if isinstance(node, ast.BinOp) and isinstance(node.op, ast.BitOr):
415
428
  return node.left, node.right
@@ -445,6 +458,8 @@ class _DataUnions:
445
458
  return uncertain
446
459
 
447
460
  def _field_domain(self, field: ast.AnnAssign, *, required: bool) -> _Domain:
461
+ if _parameter_dependent_field(field, self.context):
462
+ return _Domain(opaque=True)
448
463
  if _direct_initvar_field(field, self.context, self.provenance):
449
464
  return _Domain()
450
465
  node = field.annotation
@@ -621,6 +636,14 @@ def _class_annotation_shadowed(annotation: ast.expr, names: frozenset[str], cont
621
636
  return True
622
637
 
623
638
 
639
+ def _parameter_dependent_field(field: ast.AnnAssign, context: PythonFileContext) -> bool:
640
+ owner = context.parents.get(field)
641
+ if not isinstance(owner, ast.ClassDef) or not owner.type_params:
642
+ return False
643
+ parameters = plain_parameters(owner.type_params)
644
+ return parameters is None or _class_annotation_shadowed(field.annotation, parameters, context)
645
+
646
+
624
647
  def _class_annotation_children(
625
648
  node: ast.expr, *, forward: bool, context: PythonFileContext
626
649
  ) -> list[tuple[ast.expr, bool]]:
@@ -634,7 +657,7 @@ def _class_annotation_children(
634
657
 
635
658
 
636
659
  def _record_required(node: ast.ClassDef, context: PythonFileContext, provenance: ResourceProvenance) -> bool | None:
637
- if node.type_params:
660
+ if record_parameters(node) is None:
638
661
  return None
639
662
  if any(not _untouched(base, provenance) for base in node.bases):
640
663
  return None
@@ -804,8 +827,13 @@ def _alias_value(
804
827
  node: ast.stmt, context: PythonFileContext, provenance: ResourceProvenance | None = None
805
828
  ) -> ast.expr | None:
806
829
  match node:
807
- case ast.TypeAlias(type_params=[]):
808
- return node.value
830
+ case ast.TypeAlias():
831
+ parameters = plain_parameters(node.type_params)
832
+ return (
833
+ node.value
834
+ if parameters is not None and _payload_parameters_only(node.value, parameters, context)
835
+ else None
836
+ )
809
837
  case ast.AnnAssign(target=ast.Name(), annotation=annotation, value=value):
810
838
  return (
811
839
  value
@@ -819,6 +847,42 @@ def _alias_value(
819
847
  return None
820
848
 
821
849
 
850
+ def _payload_parameters_only(expression: ast.expr, parameters: frozenset[str], context: PythonFileContext) -> bool:
851
+ if not parameters:
852
+ return True
853
+ pending = [expression]
854
+ for _ in range(_MAX_EXPANSION):
855
+ if not pending:
856
+ return True
857
+ node = pending.pop()
858
+ if isinstance(node, ast.Constant) and isinstance(node.value, str):
859
+ return False
860
+ if isinstance(node, ast.BinOp) and isinstance(node.op, ast.BitOr):
861
+ pending.extend((node.left, node.right))
862
+ elif isinstance(node, ast.Subscript):
863
+ children = _parameter_union_children(node, parameters, context)
864
+ if children is None:
865
+ return False
866
+ pending.extend(children)
867
+ elif uses_parameters(node, parameters):
868
+ return False
869
+ return False
870
+
871
+
872
+ def _parameter_union_children(
873
+ node: ast.Subscript, parameters: frozenset[str], context: PythonFileContext
874
+ ) -> tuple[ast.expr, ...] | None:
875
+ if uses_parameters(node.value, parameters):
876
+ return None
877
+ symbol = context.module_imports.resolved_symbol(node.value, sources=TYPING_SOURCES)
878
+ members = _subscript_members(node)
879
+ if symbol in {"Union", "Optional"}:
880
+ return members
881
+ if symbol == "Annotated" and members:
882
+ return None if any(uses_parameters(member, parameters) for member in members[1:]) else members[:1]
883
+ return ()
884
+
885
+
822
886
  def _string_expression(node: ast.expr) -> ast.expr | None:
823
887
  if not isinstance(node, ast.Constant) or not isinstance(node.value, str):
824
888
  return node
@@ -0,0 +1,34 @@
1
+ from __future__ import annotations
2
+
3
+ import ast
4
+
5
+
6
+ def plain_parameters(parameters: list[ast.type_param]) -> frozenset[str] | None:
7
+ if any(
8
+ not isinstance(item, ast.TypeVar) or item.bound is not None or item.default_value is not None
9
+ for item in parameters
10
+ ):
11
+ return None
12
+ return frozenset(item.name for item in parameters if isinstance(item, ast.TypeVar))
13
+
14
+
15
+ def record_parameters(node: ast.ClassDef) -> frozenset[str] | None:
16
+ parameters = plain_parameters(node.type_params)
17
+ if parameters is None or any(uses_parameters(item, parameters) for item in (*node.bases, *node.decorator_list)):
18
+ return None
19
+ return parameters
20
+
21
+
22
+ def specialized(expression: ast.expr, parameters: list[ast.type_param]) -> bool:
23
+ if not parameters:
24
+ return not isinstance(expression, ast.Subscript)
25
+ if not isinstance(expression, ast.Subscript) or plain_parameters(parameters) is None:
26
+ return False
27
+ arguments = expression.slice.elts if isinstance(expression.slice, ast.Tuple) else [expression.slice]
28
+ return len(arguments) == len(parameters) and not any(isinstance(item, ast.Starred) for item in arguments)
29
+
30
+
31
+ def uses_parameters(expression: ast.expr, parameters: frozenset[str]) -> bool:
32
+ return bool(parameters) and any(
33
+ isinstance(item, ast.Name) and item.id in parameters for item in ast.walk(expression)
34
+ )
@@ -54,6 +54,34 @@ _MAX_VALIDATOR_DEPTH = 32
54
54
  _MAX_BASE_DEPTH = 8
55
55
  _MAX_IMPORTED_MODULES = 32
56
56
  _MAX_MESSAGE_DEPTH = 16
57
+ _RESULT_TYPES = """from typing import Annotated, Literal
58
+ from pydantic import BaseModel, Field
59
+ class Success[T](BaseModel):
60
+ kind: Literal['success'] = 'success'
61
+ value: T
62
+ class Error[E](BaseModel):
63
+ kind: Literal['error'] = 'error'
64
+ error: E
65
+ type Result[T, E] = Annotated[Success[T] | Error[E], Field(discriminator='kind')]
66
+ """
67
+ _DENIED_SERVICE = """from typing import Literal, assert_never
68
+ from pydantic import BaseModel, TypeAdapter
69
+ from app.outcomes import Error, Result, Success
70
+ class Denied(BaseModel):
71
+ code: Literal['denied'] = 'denied'
72
+ name: str
73
+ def save(name: str, allowed: bool) -> Result[str, Denied]:
74
+ return Success[str](value=name) if allowed else Error[Denied](error=Denied(name=name))
75
+ def format_result(result: Result[str, Denied]) -> str:
76
+ if result.kind == 'success':
77
+ return result.value
78
+ if result.kind == 'error':
79
+ return f'Denied {result.error.name}'
80
+ assert_never(result)
81
+ codec = TypeAdapter[Result[str, Denied]](Result[str, Denied])
82
+ def decode_result(data: str) -> Result[str, Denied]:
83
+ return codec.validate_json(data, strict=True)
84
+ """
57
85
 
58
86
 
59
87
  @final
@@ -72,10 +100,12 @@ class NoCustomControlFlowException(Rule):
72
100
  ),
73
101
  remediation=(
74
102
  "Review direct raises of this exception. If the condition is an expected domain outcome, reuse an established Result[T, E] "
75
- "or a generic union of typed success/failure variants with a stable domain error code and the handling context. "
103
+ "or a generic Success[T] | Error[E] union with a shared Literal discriminator, a stable domain error code and the handling context. "
76
104
  "Update callers to handle, propagate or translate each relevant variant; use the native type checker's assert_never "
77
105
  "for exhaustiveness. Extend an existing outcome union rather than wrapping it again. "
78
- "Format the message at the consumer. Preserve true exceptional failures, "
106
+ "For a serializable contract, wrap the successful payload too; avoid a raw scalar | Error union. "
107
+ "Use the project's established codec and validate incoming tags and payloads; Pydantic models with an Annotated "
108
+ "Field(discriminator=...) union and TypeAdapter are one option. Format the message at the consumer. Preserve true exceptional failures, "
79
109
  "validation rejection, transport/framework protocols, cancellation, unwinding and useful cause context. "
80
110
  "A class name or a raise does not prove the condition is expected."
81
111
  ),
@@ -89,6 +119,7 @@ class NoCustomControlFlowException(Rule):
89
119
  "Raising a ValueError-derived marker from an import-proven Pydantic field/model validator or legacy validator preserves that rejection protocol. Direct synchronous module callbacks used only as Annotated validator metadata on plain direct BaseModel fields, and stable nonescaping direct nested helpers, also preserve rejection; lexical helper ownership is bounded to 32 levels. Unknown external bases and visible mutations or escapes of the class or a local base to registrations, callbacks or other value consumers abstain; HTTPException and other framework-required exception types remain valid.",
90
120
  "Expectedness is not inferred from a name, message or prefix. Genuine exceptional markers may also match and require review rather than conversion. Cross-module callers and registrations, indirect raises, dynamically mutated namespaces and class aliases are not inferred. Only simple stable module assignment aliases and nongeneric annotation aliases consumed directly by model fields are followed. Explicit string annotations, custom model hooks, async/generator callbacks, escaped helpers and broader call graphs are not followed. Generic lexical resolution can miss a module marker shadowed only in a method's class namespace.",
91
121
  "Tests, generated and vendor code are excluded. No automatic rewrite is safe: a result return must preserve failure handling and transaction/resource unwinding. SARJ435 separately reviews joined-string reason identities.",
122
+ "The examples illustrate an existing project Result abstraction; do not introduce another Result library or require these class/tag names. SARJ510 owns explicit data discriminators and SARJ548 reviews discarded tagged outcomes; the native type checker owns exhaustive handling. A tag alone cannot guarantee JSON support for arbitrary T/E: qualify the concrete payloads with their codec. Keep established wire discriminators, legitimate absence and independent outcomes. This warning does not mechanically ban scalar unions or require every function to return Result.",
92
123
  ),
93
124
  examples=(
94
125
  RuleExample(
@@ -151,15 +182,8 @@ class NoCustomControlFlowException(Rule):
151
182
  title="A typed outcome retains the code and formatting context",
152
183
  outcome=ExampleOutcome.NO_MATCH,
153
184
  files=(
154
- ExampleFile.python(
155
- "app/content.py",
156
- "from dataclasses import dataclass\nfrom typing import Literal\n"
157
- "@dataclass(frozen=True)\nclass Denied:\n"
158
- " name: str\n code: Literal['denied'] = 'denied'\n"
159
- "def load(name: str, allowed: bool) -> str | Denied:\n"
160
- " return name if allowed else Denied(name)\n"
161
- "def format_error(error: Denied) -> str:\n return f'Denied {error.name}'\n",
162
- ),
185
+ ExampleFile.python("app/outcomes.py", _RESULT_TYPES),
186
+ ExampleFile.python("app/content.py", _DENIED_SERVICE.replace("def save(", "def load(")),
163
187
  ),
164
188
  focus_path=PurePosixPath("app/content.py"),
165
189
  expected_count=0,
@@ -186,26 +210,11 @@ class NoCustomControlFlowException(Rule):
186
210
  RuleExample(
187
211
  example_id="generic-success-failure-union",
188
212
  scenario="imported-outcome",
189
- title="An established generic union makes rejection visible to callers",
213
+ title="An established tagged generic union supports explicit handling and JSON decoding",
190
214
  outcome=ExampleOutcome.NO_MATCH,
191
215
  files=(
192
- ExampleFile.python(
193
- "app/outcomes.py",
194
- "from dataclasses import dataclass\n"
195
- "@dataclass(frozen=True)\nclass Success[T]:\n value: T\n"
196
- "@dataclass(frozen=True)\nclass Failure[E]:\n error: E\n"
197
- "type Result[T, E] = Success[T] | Failure[E]\n",
198
- ),
199
- ExampleFile.python(
200
- "app/service.py",
201
- "from dataclasses import dataclass\nfrom typing import Literal\n"
202
- "from app.outcomes import Failure, Result, Success\n"
203
- "@dataclass(frozen=True)\nclass Denied:\n"
204
- " name: str\n code: Literal['denied'] = 'denied'\n"
205
- "def save(name: str, allowed: bool) -> Result[str, Denied]:\n"
206
- " return Success(name) if allowed else Failure(Denied(name))\n"
207
- "def format_error(error: Denied) -> str:\n return f'Denied {error.name}'\n",
208
- ),
216
+ ExampleFile.python("app/outcomes.py", _RESULT_TYPES),
217
+ ExampleFile.python("app/service.py", _DENIED_SERVICE),
209
218
  ),
210
219
  focus_path=PurePosixPath("app/service.py"),
211
220
  expected_count=0,
@@ -234,18 +243,11 @@ class NoCustomControlFlowException(Rule):
234
243
  RuleExample(
235
244
  example_id="direct-domain-outcome-union",
236
245
  scenario="prepared-message",
237
- title="A direct union preserves the existing successful value",
246
+ title="Both success and rejection carry a stable discriminator",
238
247
  outcome=ExampleOutcome.NO_MATCH,
239
248
  files=(
240
- ExampleFile.python(
241
- "app/service.py",
242
- "from dataclasses import dataclass\nfrom typing import Literal\n"
243
- "@dataclass(frozen=True)\nclass Denied:\n"
244
- " name: str\n code: Literal['denied'] = 'denied'\n"
245
- "def save(name: str, allowed: bool) -> str | Denied:\n"
246
- " return name if allowed else Denied(name)\n"
247
- "def format_error(error: Denied) -> str:\n return f'Denied {error.name}'\n",
248
- ),
249
+ ExampleFile.python("app/outcomes.py", _RESULT_TYPES),
250
+ ExampleFile.python("app/service.py", _DENIED_SERVICE),
249
251
  ),
250
252
  focus_path=PurePosixPath("app/service.py"),
251
253
  expected_count=0,
@@ -280,14 +282,14 @@ class NoCustomControlFlowException(Rule):
280
282
  title="The error variant retains the identifier needed by its caller",
281
283
  outcome=ExampleOutcome.NO_MATCH,
282
284
  files=(
285
+ ExampleFile.python("app/outcomes.py", _RESULT_TYPES),
283
286
  ExampleFile.python(
284
287
  "app/service.py",
285
- "from dataclasses import dataclass\nfrom typing import Literal\n"
286
- "@dataclass(frozen=True)\nclass Missing:\n"
287
- " record_id: str\n code: Literal['missing'] = 'missing'\n"
288
- "def load(record_id: str, exists: bool) -> str | Missing:\n"
289
- " return record_id if exists else Missing(record_id)\n"
290
- "def format_error(error: Missing) -> str:\n return f'Missing {error.record_id}'\n",
288
+ _DENIED_SERVICE.replace("Denied", "Missing")
289
+ .replace("denied", "missing")
290
+ .replace("name", "record_id")
291
+ .replace("allowed", "exists")
292
+ .replace("def save(", "def load("),
291
293
  ),
292
294
  ),
293
295
  focus_path=PurePosixPath("app/service.py"),
@@ -17,6 +17,7 @@ from sarj_python_lint.rule_base import (
17
17
  Severity,
18
18
  )
19
19
  from sarj_python_lint.rules._declared_contracts import DeclaredContracts
20
+ from sarj_python_lint.rules._generic_payload import plain_parameters, record_parameters, specialized, uses_parameters
20
21
  from sarj_python_lint.rules._imports import TYPING_SOURCES
21
22
  from sarj_python_lint.rules._resource_provenance import import_name_for_binding
22
23
 
@@ -30,6 +31,7 @@ if TYPE_CHECKING:
30
31
 
31
32
  type _Function = ast.FunctionDef | ast.AsyncFunctionDef
32
33
  type _Discard = ast.Expr | ast.Assign | ast.AnnAssign
34
+ type _Tag = str | bool
33
35
  _MAX_DEPTH = 16
34
36
  _MIN_VARIANTS = 2
35
37
  _BASE = """from typing import Literal
@@ -44,6 +46,21 @@ type Outcome = Accepted | Rejected
44
46
  def check(value: str) -> Outcome:
45
47
  return Accepted(kind='accepted', value=value)
46
48
  """
49
+ _GENERIC_RESULT = """from typing import Annotated, Literal
50
+ from pydantic import BaseModel, Field
51
+ class Success[T](BaseModel):
52
+ kind: Literal['success'] = 'success'
53
+ value: T
54
+ class Error[E](BaseModel):
55
+ kind: Literal['error'] = 'error'
56
+ error: E
57
+ class Denied(BaseModel):
58
+ code: Literal['denied'] = 'denied'
59
+ name: str
60
+ type Result[T, E] = Annotated[Success[T] | Error[E], Field(discriminator='kind')]
61
+ def save(name: str, allowed: bool) -> Result[str, Denied]:
62
+ return Success[str](value=name) if allowed else Error[Denied](error=Denied(name=name))
63
+ """
47
64
 
48
65
 
49
66
  @dataclass(frozen=True)
@@ -57,6 +74,7 @@ class _Reference:
57
74
  context: "PythonFileContext"
58
75
  expression: ast.expr
59
76
  anchor: ast.AST | None = None
77
+ parameters: frozenset[str] = frozenset()
60
78
 
61
79
 
62
80
  @final
@@ -78,10 +96,10 @@ class NoDiscardedTaggedOutcome(ProjectRule):
78
96
  category=RuleCategory.CORRECTNESS,
79
97
  autofix=AutofixPolicy.NONE,
80
98
  limitations=(
81
- "Review warning for standalone synchronous calls and directly awaited async calls to stable source-visible module functions. The return must resolve to at least two direct Pydantic, dataclass or required TypedDict variants sharing a string Literal discriminator with disjoint values. No name such as Result or Error establishes proof.",
82
- "Module-local and prepared-project absolute imports, quoted bare aliases and PEP 604 returns, unquoted typing.Union and Annotated, and bounded non-generic type aliases are supported. Quoted typing-wrapper combinations, unknown receivers, decorated or generic functions, re-exports, optional/scalar branches, generic records, inheritance, dynamic namespaces, rebound or escaped callable identities, generator functions and unsupported annotations abstain.",
99
+ "Review warning for standalone synchronous calls and directly awaited async calls to stable source-visible module functions. The return must resolve to at least two direct Pydantic, dataclass or required TypedDict variants sharing a string or Boolean Literal discriminator with disjoint values. No name such as Result or Error establishes proof.",
100
+ "Module-local and prepared-project absolute imports, quoted bare aliases and PEP 604 returns, unquoted typing.Union and Annotated, and bounded type aliases are supported. Explicitly specialized PEP 695 records and aliases support ordinary type parameters when tags are independent of payload parameters. Parameter-dependent variants/tags, bounded/defaulted/variadic parameters, incorrect arity, quoted typing-wrapper combinations, unknown receivers, decorated or generic functions, re-exports, optional/scalar branches, inheritance, dynamic namespaces, rebound or escaped callable identities, generator functions and unsupported annotations abstain.",
83
101
  "Named assignments, returned, passed or conditionally consumed results are preserved. A direct assignment to the single underscore target is an explicit discard and is reviewed. An unawaited async call belongs to coroutine checks. Direct class-body execution, generated sources and opaque providers are excluded. This rule identifies discarding; it does not prove that an assignment handles every variant or infer expected failure from a record name.",
84
- "String Literal tags must be direct instance fields on every variant and retain their original class-scope binding. Quoted field tags remain outside the proof; quoted module return annotations retain their source declaration anchor. Dynamic fields, optional TypedDict fields, non-string tags, computed Literal values and multi-field discriminator hierarchies are not inferred. No automatic rewrite changes call behavior or error handling.",
102
+ "String or Boolean Literal tags must be direct instance fields on every variant and retain their original class-scope binding. Existing Boolean wire discriminators remain valid; the analyzer does not rename tags or impose Success/Error class names. Quoted field tags remain outside the proof; quoted module return annotations retain their source declaration anchor. Dynamic fields, optional TypedDict fields, other tag types, computed Literal values and multi-field discriminator hierarchies are not inferred. A discriminator does not prove JSON serialization for arbitrary payloads. No automatic rewrite changes call behavior or error handling.",
85
103
  ),
86
104
  examples=(
87
105
  RuleExample(
@@ -104,6 +122,32 @@ class NoDiscardedTaggedOutcome(ProjectRule):
104
122
  expected_count=0,
105
123
  public=True,
106
124
  ),
125
+ RuleExample(
126
+ example_id="discarded-generic-result",
127
+ scenario="generic-result-consumption",
128
+ title="A returned generic success/error contract is discarded",
129
+ outcome=ExampleOutcome.MATCH,
130
+ files=(ExampleFile.python("app/outcomes.py", _GENERIC_RESULT + "save('record-7', False)\n"),),
131
+ focus_path=PurePosixPath("app/outcomes.py"),
132
+ expected_count=1,
133
+ public=True,
134
+ ),
135
+ RuleExample(
136
+ example_id="forwarded-generic-result",
137
+ scenario="generic-result-consumption",
138
+ title="The caller propagates the complete generic result",
139
+ outcome=ExampleOutcome.NO_MATCH,
140
+ files=(
141
+ ExampleFile.python(
142
+ "app/outcomes.py",
143
+ _GENERIC_RESULT
144
+ + "def run(name: str, allowed: bool) -> Result[str, Denied]:\n return save(name, allowed)\n",
145
+ ),
146
+ ),
147
+ focus_path=PurePosixPath("app/outcomes.py"),
148
+ expected_count=0,
149
+ public=True,
150
+ ),
107
151
  ),
108
152
  )
109
153
  description = documentation.summary
@@ -246,6 +290,9 @@ class _OutcomeCalls:
246
290
  if node is None or depth >= _MAX_DEPTH:
247
291
  return None
248
292
  anchor = reference.anchor or reference.expression
293
+ head = node.value if isinstance(node, ast.Subscript) else node
294
+ if _root_name(head) in reference.parameters:
295
+ return None
249
296
  if isinstance(node, ast.Name) and node.id in semantics.aliases:
250
297
  key = (owner.path, node.id)
251
298
  if key in seen or not _alias_identity(owner, node.id, semantics.aliases[node.id], anchor):
@@ -255,12 +302,16 @@ class _OutcomeCalls:
255
302
  return None
256
303
  children = _union_children(node, owner)
257
304
  if children is not None:
258
- return self._expanded_members(_Reference(owner, node, anchor), children, seen, depth)
305
+ return self._expanded_members(_Reference(owner, node, anchor, reference.parameters), children, seen, depth)
306
+ generic = self._generic_alias(_Reference(owner, node, anchor))
307
+ if generic is not None:
308
+ key = (generic.context.path, ast.unparse(generic.expression))
309
+ return None if key in seen else self._members(generic, seen | {key}, depth + 1)
259
310
  imported = self._imported_alias(_Reference(owner, node, anchor))
260
311
  if imported is not None:
261
312
  key = (imported.context.path, ast.unparse(imported.expression))
262
313
  return None if key in seen else self._members(imported, seen | {key}, depth + 1)
263
- return [_Reference(owner, node, anchor)]
314
+ return [_Reference(owner, node, anchor, reference.parameters)]
264
315
 
265
316
  def _expanded_members(
266
317
  self,
@@ -271,7 +322,7 @@ class _OutcomeCalls:
271
322
  ) -> list[_Reference] | None:
272
323
  result: list[_Reference] = []
273
324
  for child in children:
274
- member = _Reference(reference.context, child, reference.anchor)
325
+ member = _Reference(reference.context, child, reference.anchor, reference.parameters)
275
326
  expanded = self._members(member, seen, depth + 1)
276
327
  if expanded is None:
277
328
  return None
@@ -280,6 +331,43 @@ class _OutcomeCalls:
280
331
  return None
281
332
  return result
282
333
 
334
+ def _generic_alias(self, reference: _Reference) -> _Reference | None:
335
+ owner, node = reference.context, reference.expression
336
+ if not isinstance(node, ast.Subscript):
337
+ return None
338
+ binding = _reference_binding(owner, node.value, reference.anchor or node)
339
+ declaration = owner.parents.get(binding) if binding is not None else None
340
+ if isinstance(binding, ast.alias):
341
+ imported = self._imported_alias_name(_Reference(owner, node.value, reference.anchor or node))
342
+ if imported is None:
343
+ return None
344
+ owner = imported.context
345
+ declaration = owner.parents.get(imported.expression)
346
+ if (
347
+ not isinstance(declaration, ast.TypeAlias)
348
+ or not self._stable(owner, declaration.name.id)
349
+ or not specialized(node, declaration.type_params)
350
+ ):
351
+ return None
352
+ parameters = plain_parameters(declaration.type_params)
353
+ return _Reference(owner, declaration.value, parameters=parameters) if parameters is not None else None
354
+
355
+ def _imported_alias_name(self, reference: _Reference) -> _Reference | None:
356
+ owner = reference.context
357
+ unit = self.contracts.project.unit(owner.path)
358
+ if unit is None:
359
+ return None
360
+ symbol = self.contracts.project.resolve(unit, reference.expression)
361
+ if symbol is None:
362
+ return None
363
+ provider = self._provider(self.contracts.project.source_unit(symbol.module))
364
+ if provider is None or provider.tree is None or not self._stable(provider, symbol.name):
365
+ return None
366
+ for declaration in provider.tree.body:
367
+ if isinstance(declaration, ast.TypeAlias) and declaration.name.id == symbol.name:
368
+ return _Reference(provider, declaration.name)
369
+ return None
370
+
283
371
  def _imported_alias(self, reference: _Reference) -> _Reference | None:
284
372
  owner, node = reference.context, reference.expression
285
373
  if not isinstance(_reference_binding(owner, node, reference.anchor or node), ast.alias):
@@ -304,14 +392,19 @@ class _OutcomeCalls:
304
392
  common = set(records[0]).intersection(*(record for record in records[1:]))
305
393
  return any(_disjoint([record[field] for record in records]) for field in common)
306
394
 
307
- def _record(self, reference: _Reference) -> dict[str, frozenset[str]] | None:
395
+ def _record(self, reference: _Reference) -> dict[str, frozenset[_Tag]] | None:
308
396
  owner = reference.context
309
- if _reference_binding(owner, reference.expression, reference.anchor or reference.expression) is None:
397
+ expression = reference.expression
398
+ head = expression.value if isinstance(expression, ast.Subscript) else expression
399
+ if (
400
+ _root_name(head) in reference.parameters
401
+ or _reference_binding(owner, head, reference.anchor or expression) is None
402
+ ):
310
403
  return None
311
404
  unit = self.contracts.project.unit(owner.path)
312
405
  if unit is None:
313
406
  return None
314
- summary = self.contracts.project.class_for(unit, reference.expression)
407
+ summary = self.contracts.project.class_for(unit, head)
315
408
  provider = (
316
409
  self._provider(self.contracts.project.source_unit(summary.symbol.module)) if summary is not None else None
317
410
  )
@@ -330,7 +423,11 @@ class _OutcomeCalls:
330
423
  ),
331
424
  None,
332
425
  )
333
- if declaration is None or not _record_shape(declaration, provider):
426
+ if (
427
+ declaration is None
428
+ or not specialized(expression, declaration.type_params)
429
+ or not _record_shape(declaration, provider)
430
+ ):
334
431
  return None
335
432
  return _record_tags(declaration, provider)
336
433
 
@@ -388,7 +485,7 @@ def _union_children(node: ast.expr, context: PythonFileContext) -> list[ast.expr
388
485
 
389
486
 
390
487
  def _record_shape(node: ast.ClassDef, context: PythonFileContext) -> bool:
391
- if node.type_params or any(
488
+ if record_parameters(node) is None or any(
392
489
  keyword.arg != "total" or not isinstance(keyword.value, ast.Constant) or keyword.value.value is not True
393
490
  for keyword in node.keywords
394
491
  ):
@@ -426,21 +523,26 @@ def _record_member(node: ast.stmt) -> bool:
426
523
  return False
427
524
 
428
525
 
429
- def _record_tags(declaration: ast.ClassDef, context: PythonFileContext) -> dict[str, frozenset[str]] | None:
526
+ def _record_tags(declaration: ast.ClassDef, context: PythonFileContext) -> dict[str, frozenset[_Tag]] | None:
430
527
  fields = [
431
528
  node for node in declaration.body if isinstance(node, ast.AnnAssign) and isinstance(node.target, ast.Name)
432
529
  ]
433
530
  names = [node.target.id for node in fields if isinstance(node.target, ast.Name)]
434
531
  if len(names) != len(set(names)):
435
532
  return None
533
+ parameters = plain_parameters(declaration.type_params)
534
+ if parameters is None:
535
+ return None
436
536
  return {
437
537
  node.target.id: values
438
538
  for node in fields
439
- if isinstance(node.target, ast.Name) and (values := _literal_strings(node.annotation, context)) is not None
539
+ if isinstance(node.target, ast.Name)
540
+ and not uses_parameters(node.annotation, parameters)
541
+ and (values := _literal_strings(node.annotation, context)) is not None
440
542
  }
441
543
 
442
544
 
443
- def _literal_strings(annotation: ast.expr, context: PythonFileContext) -> frozenset[str] | None:
545
+ def _literal_strings(annotation: ast.expr, context: PythonFileContext) -> frozenset[_Tag] | None:
444
546
  reference = _literal_reference(_Reference(context, annotation))
445
547
  if reference is None:
446
548
  return None
@@ -451,10 +553,12 @@ def _literal_strings(annotation: ast.expr, context: PythonFileContext) -> frozen
451
553
  }:
452
554
  return None
453
555
  values = node.slice.elts if isinstance(node.slice, ast.Tuple) else [node.slice]
454
- if not values or any(not isinstance(value, ast.Constant) or not isinstance(value.value, str) for value in values):
556
+ if not values or any(
557
+ not isinstance(value, ast.Constant) or not isinstance(value.value, str | bool) for value in values
558
+ ):
455
559
  return None
456
560
  return frozenset(
457
- value.value for value in values if isinstance(value, ast.Constant) and isinstance(value.value, str)
561
+ value.value for value in values if isinstance(value, ast.Constant) and isinstance(value.value, str | bool)
458
562
  )
459
563
 
460
564
 
@@ -508,8 +612,14 @@ def _reference_binding(context: PythonFileContext, expression: ast.expr, anchor:
508
612
  return binding if isinstance(binding, ast.alias | ast.ClassDef | ast.Name) else None
509
613
 
510
614
 
511
- def _disjoint(domains: list[frozenset[str]]) -> bool:
512
- seen: set[str] = set()
615
+ def _root_name(expression: ast.expr) -> str | None:
616
+ while isinstance(expression, ast.Attribute):
617
+ expression = expression.value
618
+ return expression.id if isinstance(expression, ast.Name) else None
619
+
620
+
621
+ def _disjoint(domains: list[frozenset[_Tag]]) -> bool:
622
+ seen: set[_Tag] = set()
513
623
  for domain in domains:
514
624
  if not seen.isdisjoint(domain):
515
625
  return False