StrawberryAnnotation
Constructor:
Signature:
Parameters:
-
annotation:
- Type
-
object | str
-
namespace:
- Type
-
Dict[str, Any] | None
- Default
-
None
Methods:
-
from_annotation
Signature:
Parameters:
-
annotation:
- Type
-
object
-
namespace:
- Type
-
Dict[str, Any] | None
- Default
-
None
-
-
evaluate
Return evaluated annotation using
strawberry.util.typing.eval_type
.Signature:
-
resolve
Return resolved (transformed) annotation.
Signature:
-
set_namespace_from_field
Signature:
Parameters:
-
field:
- Type
-
StrawberryField
-
-
create_concrete_type
Signature:
Parameters:
-
evaled_type:
- Type
-
type
-
-
create_enum
Signature:
Parameters:
-
evaled_type:
- Type
-
Any
-
-
create_list
Signature:
Parameters:
-
evaled_type:
- Type
-
Any
-
-
create_optional
Signature:
Parameters:
-
evaled_type:
- Type
-
Any
-
-
create_type_var
Signature:
Parameters:
-
evaled_type:
- Type
-
TypeVar
-
-
create_union
Signature:
Parameters:
-
evaled_type:
- Type
-
Type[Any]
-
args:
- Type
-
list[Any]
-
Attributes:
-
raw_annotation:
-
namespace:
-
annotation:
Return evaluated type on success or fallback to raw (string) annotation.
- Type
-
object | str