File tree 3 files changed +11
-13
lines changed
3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -833,9 +833,7 @@ def fields(self) -> GraphQLFieldMap:
833
833
)
834
834
return {
835
835
assert_name (name ): (
836
- value
837
- if isinstance (value , GraphQLField )
838
- else GraphQLField (value ) # type: ignore
836
+ value if isinstance (value , GraphQLField ) else GraphQLField (value )
839
837
)
840
838
for name , value in fields .items ()
841
839
}
@@ -969,9 +967,7 @@ def fields(self) -> GraphQLFieldMap:
969
967
)
970
968
return {
971
969
assert_name (name ): (
972
- value
973
- if isinstance (value , GraphQLField )
974
- else GraphQLField (value ) # type: ignore
970
+ value if isinstance (value , GraphQLField ) else GraphQLField (value )
975
971
)
976
972
for name , value in fields .items ()
977
973
}
@@ -1492,7 +1488,7 @@ def fields(self) -> GraphQLInputFieldMap:
1492
1488
assert_name (name ): (
1493
1489
value
1494
1490
if isinstance (value , GraphQLInputField )
1495
- else GraphQLInputField (value ) # type: ignore
1491
+ else GraphQLInputField (value )
1496
1492
)
1497
1493
for name , value in fields .items ()
1498
1494
}
Original file line number Diff line number Diff line change @@ -292,7 +292,9 @@ class IntrospectionSchema(MaybeWithDescription):
292
292
directives : List [IntrospectionDirective ]
293
293
294
294
295
- class IntrospectionQuery (TypedDict ):
296
- """The root typed dictionary for schema introspections."""
297
-
298
- __schema : IntrospectionSchema
295
+ # The root typed dictionary for schema introspections.
296
+ # Note: We don't use class syntax here since the key looks like a private attribute.
297
+ IntrospectionQuery = TypedDict (
298
+ "IntrospectionQuery" ,
299
+ {"__schema" : IntrospectionSchema },
300
+ )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ isolated_build = true
4
4
5
5
[gh-actions]
6
6
python =
7
- 3: py311
7
+ 3: py313
8
8
3.6: py36
9
9
3.7: py37
10
10
3.8: py38
@@ -32,7 +32,7 @@ commands =
32
32
[testenv:mypy]
33
33
basepython = python3.12
34
34
deps =
35
- mypy>=1.14 ,<2
35
+ mypy>=1.15 ,<2
36
36
pytest>=8.3,<9
37
37
commands =
38
38
mypy src tests
You can’t perform that action at this time.
0 commit comments