Skip to content

Commit 6a35c1e

Browse files
fix: satisfy ty requirements
1 parent a33c49f commit 6a35c1e

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ All notable unreleased changes to this project will be documented in this file.
55
For released versions, see the [Releases](https://github.com/mirumee/ariadne/releases) page.
66

77
## Unreleased
8-
9-

ariadne/contrib/tracing/copy_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from starlette.datastructures import UploadFile
55

66
try:
7-
from python_multipart.multipart import File # type: ignore[import-untyped]
7+
from python_multipart.multipart import File # ty: ignore
88
except ImportError:
99

1010
class File:

ariadne/contrib/tracing/opentelemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from graphql import GraphQLResolveInfo
77
from graphql.pyutils import is_awaitable
8-
from opentelemetry.trace import ( # type: ignore[import-untyped]
8+
from opentelemetry.trace import ( # type: ignore[import-untyped] # ty: ignore
99
Context,
1010
Span,
1111
Tracer,

ariadne/contrib/tracing/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
from ...resolvers import is_default_resolver
88

99
try:
10-
from python_multipart.multipart import File # type: ignore[import-untyped]
10+
from python_multipart.multipart import ( # ty: ignore
11+
File, # type: ignore[import-untyped]
12+
)
1113
except ImportError:
1214

1315
class File:

ariadne/schema_visitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,9 @@ def heal_type(
717717
) -> GraphQLList | GraphQLNamedType | GraphQLNonNull:
718718
# Unwrap the two known wrapper types
719719
if isinstance(type_, GraphQLList):
720-
type_ = GraphQLList(heal_type(type_.of_type)) # type: ignore[arg-type]
720+
type_ = GraphQLList(heal_type(type_.of_type)) # type: ignore[arg-type] # ty: ignore
721721
elif isinstance(type_, GraphQLNonNull):
722-
type_ = GraphQLNonNull(heal_type(type_.of_type)) # type: ignore[arg-type]
722+
type_ = GraphQLNonNull(heal_type(type_.of_type)) # type: ignore[arg-type] # ty: ignore
723723
elif is_named_type(type_):
724724
# If a type annotation on a field or an argument or a union member is
725725
# any `GraphQLNamedType` with a `name`, then it must end up identical

ariadne/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
)
3838

3939
try:
40-
from python_multipart import parse_form # type: ignore[import-untyped]
40+
from python_multipart import parse_form # type: ignore[import-untyped] # ty: ignore
4141
except ImportError:
4242

4343
def parse_form(*_args, **_kwargs):

0 commit comments

Comments
 (0)