Skip to content

Commit f6c5589

Browse files
committed
formatting
1 parent 8e6fb0d commit f6c5589

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ddtrace/contrib/internal/graphql/patch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@
1313
from typing import Callable # noqa:F401
1414
from typing import Dict # noqa:F401
1515
from typing import Iterable # noqa:F401
16+
from typing import List
1617
from typing import Tuple # noqa:F401
1718
from typing import Union # noqa:F401
1819

19-
2020
import graphql
2121
from graphql import MiddlewareManager
2222
from graphql.error import GraphQLError
2323
from graphql.execution import ExecutionResult
2424
from graphql.language.source import Source
2525

2626
from ddtrace import config
27+
from ddtrace._trace.span import Span
2728
from ddtrace.constants import _ANALYTICS_SAMPLE_RATE_KEY
2829
from ddtrace.constants import _SPAN_MEASURED_KEY
2930
from ddtrace.constants import ERROR_MSG
@@ -34,6 +35,7 @@
3435
from ddtrace.internal.constants import COMPONENT
3536
from ddtrace.internal.schema import schematize_service_name
3637
from ddtrace.internal.schema import schematize_url_operation
38+
from ddtrace.internal.schema.span_attribute_schema import SpanDirection
3739
from ddtrace.internal.utils import ArgumentError
3840
from ddtrace.internal.utils import get_argument_value
3941
from ddtrace.internal.utils import set_argument_value

tests/contrib/graphene/test_graphene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def resolve_patron(root, info):
3232
class Query(graphene.ObjectType):
3333
user = graphene.String(id=graphene.ID())
3434

35-
def resolve_user(self, info, id): # noqa: A002
35+
def resolve_user(self, info, id): # noqa: A002
3636
if id != "123":
3737
raise graphql.error.GraphQLError(
3838
"User not found",

0 commit comments

Comments
 (0)