[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-09-25 09:14:44 +00:00 committed by GitHub
parent 6e3442bd12
commit 09d7d5670e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -111,11 +111,7 @@ class ClientSession(
def initialize(self) -> types.InitializeResult:
# Only set capabilities if non-default callbacks are provided
# This prevents servers from attempting callbacks when we don't actually support them
sampling = (
types.SamplingCapability()
if self._sampling_callback is not _default_sampling_callback
else None
)
sampling = types.SamplingCapability() if self._sampling_callback is not _default_sampling_callback else None
roots = (
types.RootsCapability(
# Only enable listChanged if we have a custom callback