StrawberryType
The base class for all types that Strawberry uses.
Every type that is decorated by strawberry should have a dunder
__strawberry_definition__
with an instance of a StrawberryType that contains
the parsed information that strawberry created.
NOTE: ATM this is only true for @type @interface @input follow https://github.com/strawberry-graphql/strawberry/issues/2841 to see progress.
Methods:
-
copy_with
Signature:
Parameters:
-
type_var_map:
- Type
-
Mapping[str, StrawberryType | Type[WithStrawberryObjectDefinition]]
-
-
has_generic
Signature:
Parameters:
-
type_var:
- Type
-
TypeVar
-
Attributes:
-
type_params:
- Type
-
List[TypeVar]
-
is_one_of:
- Type
-
bool
-
is_graphql_generic:
- Type
-
bool