Skip to content

Commit

Permalink
type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Feb 6, 2025
1 parent f6c5589 commit b030f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/graphql/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b030f33

Please sign in to comment.