Skip to content

Return a specific server session instance of request context #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

dsp-ant
Copy link
Member

@dsp-ant dsp-ant commented Nov 11, 2024

We currently return a generic instance of RequestContext without
a specialization on the Session type. This makes it impossible
for servers to typesafe call list_roots() and other methods.

We now return a specific instance of RequestContext[ServerSession]

Fixes #36

@dsp-ant dsp-ant added the bug Something isn't working label Nov 11, 2024
We currently return a generic instance of RequestContext without
a specialization on the Session type. This makes it impossible
for servers to typesafe call `list_roots()` and other methods.

We now return a specific instance of `RequestContext[ServerSession]`
@dsp-ant dsp-ant force-pushed the davidsp/request_context branch from b126d10 to 1177a11 Compare November 11, 2024 21:11
@dsp-ant dsp-ant merged commit 41a6157 into main Nov 11, 2024
5 checks passed
@dsp-ant dsp-ant deleted the davidsp/request_context branch November 11, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typing RequestContext
2 participants