Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Feb 6, 2025
1 parent 8e6fb0d commit f6c5589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ddtrace/contrib/internal/graphql/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
from typing import Callable # noqa:F401
from typing import Dict # noqa:F401
from typing import Iterable # noqa:F401
from typing import List
from typing import Tuple # noqa:F401
from typing import Union # noqa:F401


import graphql
from graphql import MiddlewareManager
from graphql.error import GraphQLError
from graphql.execution import ExecutionResult
from graphql.language.source import Source

from ddtrace import config
from ddtrace._trace.span import Span
from ddtrace.constants import _ANALYTICS_SAMPLE_RATE_KEY
from ddtrace.constants import _SPAN_MEASURED_KEY
from ddtrace.constants import ERROR_MSG
Expand All @@ -34,6 +35,7 @@
from ddtrace.internal.constants import COMPONENT
from ddtrace.internal.schema import schematize_service_name
from ddtrace.internal.schema import schematize_url_operation
from ddtrace.internal.schema.span_attribute_schema import SpanDirection
from ddtrace.internal.utils import ArgumentError
from ddtrace.internal.utils import get_argument_value
from ddtrace.internal.utils import set_argument_value
Expand Down
2 changes: 1 addition & 1 deletion tests/contrib/graphene/test_graphene.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def resolve_patron(root, info):
class Query(graphene.ObjectType):
user = graphene.String(id=graphene.ID())

def resolve_user(self, info, id): # noqa: A002
def resolve_user(self, info, id): # noqa: A002
if id != "123":
raise graphql.error.GraphQLError(
"User not found",
Expand Down

0 comments on commit f6c5589

Please sign in to comment.