Skip to content

feat: raise 405/406 on predicate mismatches#3811

Open
miketheman wants to merge 1 commit intoPylons:mainfrom
miketheman:feat/predictate-mismatches
Open

feat: raise 405/406 on predicate mismatches#3811
miketheman wants to merge 1 commit intoPylons:mainfrom
miketheman:feat/predictate-mismatches

Conversation

@miketheman
Copy link
Copy Markdown
Contributor

An attempt to solve #1526

I guided Claude Code for this implementation while reviewing each step, and correcting where needed.

The delayed import statements inside PredicateMismatch prevent circular imports, not sure if there's a better approach here.

An existing test changed is test_it_raises_predicate_mismatch (renamed to test_it_raises_405_on_request_method_mismatch) since that's the only behavioral change I could identify.

Looking forward to your thoughts!

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the feat/predictate-mismatches branch from 977d990 to c76449b Compare March 5, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant