1+ from __future__ import annotations # Python < 3.10
2+
13from enum import Enum
24from typing import (
35 Any ,
@@ -280,7 +282,7 @@ def to_kwargs(self) -> GraphQLNamedTypeKwargs:
280282 extension_ast_nodes = self .extension_ast_nodes ,
281283 )
282284
283- def __copy__ (self ) -> " GraphQLNamedType" : # pragma: no cover
285+ def __copy__ (self ) -> GraphQLNamedType : # pragma: no cover
284286 return self .__class__ (** self .to_kwargs ())
285287
286288
@@ -451,7 +453,7 @@ def to_kwargs(self) -> GraphQLScalarTypeKwargs:
451453 specified_by_url = self .specified_by_url ,
452454 )
453455
454- def __copy__ (self ) -> " GraphQLScalarType" : # pragma: no cover
456+ def __copy__ (self ) -> GraphQLScalarType : # pragma: no cover
455457 return self .__class__ (** self .to_kwargs ())
456458
457459
@@ -469,7 +471,7 @@ def assert_scalar_type(type_: Any) -> GraphQLScalarType:
469471
470472
471473class GraphQLFieldKwargs (TypedDict , total = False ):
472- type_ : " GraphQLOutputType"
474+ type_ : GraphQLOutputType
473475 args : Optional [GraphQLArgumentMap ]
474476 resolve : Optional ["GraphQLFieldResolver" ]
475477 subscribe : Optional ["GraphQLFieldResolver" ]
@@ -482,7 +484,7 @@ class GraphQLFieldKwargs(TypedDict, total=False):
482484class GraphQLField :
483485 """Definition of a GraphQL field"""
484486
485- type : " GraphQLOutputType"
487+ type : GraphQLOutputType
486488 args : GraphQLArgumentMap
487489 resolve : Optional ["GraphQLFieldResolver" ]
488490 subscribe : Optional ["GraphQLFieldResolver" ]
@@ -493,7 +495,7 @@ class GraphQLField:
493495
494496 def __init__ (
495497 self ,
496- type_ : " GraphQLOutputType" ,
498+ type_ : GraphQLOutputType ,
497499 args : Optional [GraphQLArgumentMap ] = None ,
498500 resolve : Optional ["GraphQLFieldResolver" ] = None ,
499501 subscribe : Optional ["GraphQLFieldResolver" ] = None ,
@@ -577,7 +579,7 @@ def to_kwargs(self) -> GraphQLFieldKwargs:
577579 ast_node = self .ast_node ,
578580 )
579581
580- def __copy__ (self ) -> " GraphQLField" : # pragma: no cover
582+ def __copy__ (self ) -> GraphQLField : # pragma: no cover
581583 return self .__class__ (** self .to_kwargs ())
582584
583585
@@ -593,10 +595,10 @@ class GraphQLResolveInfo(NamedTuple):
593595
594596 field_name : str
595597 field_nodes : List [FieldNode ]
596- return_type : " GraphQLOutputType"
597- parent_type : " GraphQLObjectType"
598+ return_type : GraphQLOutputType
599+ parent_type : GraphQLObjectType
598600 path : Path
599- schema : " GraphQLSchema"
601+ schema : GraphQLSchema
600602 fragments : Dict [str , FragmentDefinitionNode ]
601603 root_value : Any
602604 operation : OperationDefinitionNode
@@ -628,7 +630,7 @@ class GraphQLResolveInfo(NamedTuple):
628630
629631
630632class GraphQLArgumentKwargs (TypedDict , total = False ):
631- type_ : " GraphQLInputType"
633+ type_ : GraphQLInputType
632634 default_value : Any
633635 description : Optional [str ]
634636 deprecation_reason : Optional [str ]
@@ -640,7 +642,7 @@ class GraphQLArgumentKwargs(TypedDict, total=False):
640642class GraphQLArgument :
641643 """Definition of a GraphQL argument"""
642644
643- type : " GraphQLInputType"
645+ type : GraphQLInputType
644646 default_value : Any
645647 description : Optional [str ]
646648 deprecation_reason : Optional [str ]
@@ -650,7 +652,7 @@ class GraphQLArgument:
650652
651653 def __init__ (
652654 self ,
653- type_ : " GraphQLInputType" ,
655+ type_ : GraphQLInputType ,
654656 default_value : Any = Undefined ,
655657 description : Optional [str ] = None ,
656658 deprecation_reason : Optional [str ] = None ,
@@ -706,7 +708,7 @@ def to_kwargs(self) -> GraphQLArgumentKwargs:
706708 ast_node = self .ast_node ,
707709 )
708710
709- def __copy__ (self ) -> " GraphQLArgument" : # pragma: no cover
711+ def __copy__ (self ) -> GraphQLArgument : # pragma: no cover
710712 return self .__class__ (** self .to_kwargs ())
711713
712714
@@ -798,7 +800,7 @@ def to_kwargs(self) -> GraphQLObjectTypeKwargs:
798800 is_type_of = self .is_type_of ,
799801 )
800802
801- def __copy__ (self ) -> " GraphQLObjectType" : # pragma: no cover
803+ def __copy__ (self ) -> GraphQLObjectType : # pragma: no cover
802804 return self .__class__ (** self .to_kwargs ())
803805
804806 @cached_property
@@ -932,7 +934,7 @@ def to_kwargs(self) -> GraphQLInterfaceTypeKwargs:
932934 resolve_type = self .resolve_type ,
933935 )
934936
935- def __copy__ (self ) -> " GraphQLInterfaceType" : # pragma: no cover
937+ def __copy__ (self ) -> GraphQLInterfaceType : # pragma: no cover
936938 return self .__class__ (** self .to_kwargs ())
937939
938940 @cached_property
@@ -1063,7 +1065,7 @@ def to_kwargs(self) -> GraphQLUnionTypeKwargs:
10631065 super ().to_kwargs (), types = self .types , resolve_type = self .resolve_type
10641066 )
10651067
1066- def __copy__ (self ) -> " GraphQLUnionType" : # pragma: no cover
1068+ def __copy__ (self ) -> GraphQLUnionType : # pragma: no cover
10671069 return self .__class__ (** self .to_kwargs ())
10681070
10691071 @cached_property
@@ -1203,7 +1205,7 @@ def to_kwargs(self) -> GraphQLEnumTypeKwargs:
12031205 super ().to_kwargs (), values = self .values .copy ()
12041206 )
12051207
1206- def __copy__ (self ) -> " GraphQLEnumType" : # pragma: no cover
1208+ def __copy__ (self ) -> GraphQLEnumType : # pragma: no cover
12071209 return self .__class__ (** self .to_kwargs ())
12081210
12091211 @cached_property
@@ -1352,7 +1354,7 @@ def to_kwargs(self) -> GraphQLEnumValueKwargs:
13521354 ast_node = self .ast_node ,
13531355 )
13541356
1355- def __copy__ (self ) -> " GraphQLEnumValue" : # pragma: no cover
1357+ def __copy__ (self ) -> GraphQLEnumValue : # pragma: no cover
13561358 return self .__class__ (** self .to_kwargs ())
13571359
13581360
@@ -1446,7 +1448,7 @@ def to_kwargs(self) -> GraphQLInputObjectTypeKwargs:
14461448 else self .out_type ,
14471449 )
14481450
1449- def __copy__ (self ) -> " GraphQLInputObjectType" : # pragma: no cover
1451+ def __copy__ (self ) -> GraphQLInputObjectType : # pragma: no cover
14501452 return self .__class__ (** self .to_kwargs ())
14511453
14521454 @cached_property
@@ -1491,7 +1493,7 @@ def assert_input_object_type(type_: Any) -> GraphQLInputObjectType:
14911493
14921494
14931495class GraphQLInputFieldKwargs (TypedDict , total = False ):
1494- type_ : " GraphQLInputType"
1496+ type_ : GraphQLInputType
14951497 default_value : Any
14961498 description : Optional [str ]
14971499 deprecation_reason : Optional [str ]
@@ -1503,7 +1505,7 @@ class GraphQLInputFieldKwargs(TypedDict, total=False):
15031505class GraphQLInputField :
15041506 """Definition of a GraphQL input field"""
15051507
1506- type : " GraphQLInputType"
1508+ type : GraphQLInputType
15071509 default_value : Any
15081510 description : Optional [str ]
15091511 deprecation_reason : Optional [str ]
@@ -1513,7 +1515,7 @@ class GraphQLInputField:
15131515
15141516 def __init__ (
15151517 self ,
1516- type_ : " GraphQLInputType" ,
1518+ type_ : GraphQLInputType ,
15171519 default_value : Any = Undefined ,
15181520 description : Optional [str ] = None ,
15191521 deprecation_reason : Optional [str ] = None ,
@@ -1569,7 +1571,7 @@ def to_kwargs(self) -> GraphQLInputFieldKwargs:
15691571 ast_node = self .ast_node ,
15701572 )
15711573
1572- def __copy__ (self ) -> " GraphQLInputField" : # pragma: no cover
1574+ def __copy__ (self ) -> GraphQLInputField : # pragma: no cover
15731575 return self .__class__ (** self .to_kwargs ())
15741576
15751577
0 commit comments