From 0dedc39f22a63fa01609a7d9fb3396e3087ce9b3 Mon Sep 17 00:00:00 2001 From: tmlnv <108088921+tmlnv@users.noreply.github.com> Date: Sun, 27 Apr 2025 17:38:05 +0300 Subject: [PATCH] Add None to SubsegmentContextManager.__enter__ return type (#13892) --- stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi index ad398ae98..634e32b12 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi @@ -20,7 +20,7 @@ class SubsegmentContextManager: subsegment: Subsegment def __init__(self, recorder: AWSXRayRecorder, name: Incomplete | None = None, **subsegment_kwargs) -> None: ... def __call__(self, wrapped, instance, args: list[Any], kwargs: dict[str, Any]): ... - def __enter__(self) -> Subsegment: ... + def __enter__(self) -> Subsegment | None: ... def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None ) -> None: ...