def name( # type: ignore argument: Annotated[ str, strawberry.argument(description="This is a description"), # noqa: F722 strawberry.argument(description="Another description"), # noqa: F722 ] ) -> str: return "Name"
class DeleteRecursive(Enum): TRUE: Annotated[ str, strawberry.argument(description=( "Delete content when referenced content is deleted (default)" )), ] = constants.DeleteRecursive.TRUE.value FALSE: Annotated[ str, strawberry.argument( description="Keep content when referenced content is deleted" ), ] = constants.DeleteRecursive.FALSE.value NO_GROUP: Annotated[ str, strawberry.argument(description=( "Delete content when referenced content is deleted and" "no other reference with the same group is remaining" )), ] = constants.DeleteRecursive.NO_GROUP.value
class UseCriteriaPublic(Enum): TRUE = constants.UseCriteriaPublic.TRUE.value FALSE = constants.UseCriteriaPublic.FALSE.value IGNORE = constants.UseCriteriaPublic.IGNORE.value TOKEN: Annotated[str, strawberry.argument( description="Check only token" )] = constants.UseCriteriaPublic.TOKEN.value
def hello( # type: ignore name: Annotated[ str, strawberry.argument(description="Your name") # noqa: F722 ] = "Patrick") -> str: return f"Hi {name}"
def name( # type: ignore arg: Annotated[str, strawberry.argument(name="argument"), # noqa: F722 ] = "Patrick") -> str: return "Name"
def hello( self, input_: Annotated[HelloInput, strawberry.argument(name="input")] ) -> str: return f"Hi {input_.name}"
def hello( # type: ignore name: Annotated[str, strawberry.argument( deprecation_reason="Your reason") # noqa: F722 ] = "Patrick") -> str: return f"Hi {name}"