Skip to content

Refine detector protocol context signature#48

Merged
aidankhogg merged 1 commit into
dev_alphafrom
codex/refactor-base.py-to-clean-imports-and-protocol
Sep 19, 2025
Merged

Refine detector protocol context signature#48
aidankhogg merged 1 commit into
dev_alphafrom
codex/refactor-base.py-to-clean-imports-and-protocol

Conversation

@aidankhogg

Copy link
Copy Markdown
Contributor

Summary

  • document the detector protocol in base.py and collapse duplicate definitions
  • standardise all registered detectors on the detect(text, *, context=None) signature that returns Match
  • update the run helper to pass typed context dictionaries

Testing

  • pytest tests/test_detectors.py

https://chatgpt.com/codex/tasks/task_e_68cd606f6fd883248b385153c59bcecd

@aidankhogg aidankhogg self-assigned this Sep 19, 2025
@aidankhogg aidankhogg merged commit 79475f4 into dev_alpha Sep 19, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant