Skip to content

Commit 7a119ec

Browse files
committed
Clarify private access testing guidance
1 parent 06c97df commit 7a119ec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ across the repository, in addition to any package-specific `AGENTS.md`.
2323
the API surface is sketched in an issue or design discussion before coding.
2424
Reviewers repeatedly block large feature PRs that arrive without design
2525
context, especially before 1.0 API stabilization.
26-
- Keep public APIs minimal and intentional. Avoid exposing private helpers just
27-
to make tests or examples easier; prefer improving the public path or keeping
28-
helpers private.
26+
- Keep public APIs minimal and intentional. Prefer public testing paths when
27+
practical, but limited private or test-only access is acceptable when Python
28+
tests need to exercise Cython internals that cannot be reached through a
29+
stable public API.
2930
- When adding public behavior, update docs, examples, release notes, and API
3031
index pages in the same PR unless the PR explicitly documents why those
3132
updates are deferred.

0 commit comments

Comments
 (0)