Skip to content

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Dec 4, 2025

Note

Strengthens typing for routing decorators using Protocol/ParamSpec and preserves method names, without changing behavior.

  • Typing/Decorators:
    • Introduce _RouteMethod Protocol with ParamSpec to ensure routed callables expose __name__ and typed __call__ returning _ResponseType in mock_web_query_api.py and mock_web_services_api.py.
    • Update route decorator signatures to be generic and return the same typed callable (Callable[[_RouteMethod[_P]], _RouteMethod[_P]]); adjust inner decorator annotations accordingly.
    • Minor import updates to include ParamSpec, Protocol, and runtime_checkable; no functional logic changes.

Written by Cursor Bugbot for commit a9da08c. This will update automatically on new commits. Configure here.

@adamtheturtle adamtheturtle merged commit b208d31 into main Dec 5, 2025
101 of 104 checks passed
@adamtheturtle adamtheturtle deleted the ty branch December 5, 2025 09:14
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.

2 participants