From b030f330ba544c9a21fb565ffb5e9a9a8996b53e Mon Sep 17 00:00:00 2001 From: quinna-h Date: Tue, 4 Feb 2025 11:51:30 -0500 Subject: [PATCH] type checking --- ddtrace/contrib/internal/graphql/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddtrace/contrib/internal/graphql/patch.py b/ddtrace/contrib/internal/graphql/patch.py index 4050a24002..4338b4d9f2 100644 --- a/ddtrace/contrib/internal/graphql/patch.py +++ b/ddtrace/contrib/internal/graphql/patch.py @@ -293,7 +293,7 @@ def _get_source_str(obj): return re.sub(r"\s+", " ", source_str).strip() -def _validate_error_extensions(error: GraphQLError, extensions: str | None, attributes: Dict) -> Tuple[Dict, Dict]: +def _validate_error_extensions(error: GraphQLError, extensions: Optional[str], attributes: Dict) -> Tuple[Dict, Dict]: # Validate user-provided extensions if not extensions: return {}, attributes