Skip to content

Commit 88f79b2

Browse files
committed
Fix types in Schema docstring (#1100)
1 parent 5d97c84 commit 88f79b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphene/types/schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@ class Schema:
374374
questions about the types through introspection.
375375
376376
Args:
377-
query (ObjectType): Root query *ObjectType*. Describes entry point for fields to *read*
377+
query (Type[ObjectType]): Root query *ObjectType*. Describes entry point for fields to *read*
378378
data in your Schema.
379-
mutation (ObjectType, optional): Root mutation *ObjectType*. Describes entry point for
379+
mutation (Optional[Type[ObjectType]]): Root mutation *ObjectType*. Describes entry point for
380380
fields to *create, update or delete* data in your API.
381-
subscription (ObjectType, optional): Root subscription *ObjectType*. Describes entry point
381+
subscription (Optional[Type[ObjectType]]): Root subscription *ObjectType*. Describes entry point
382382
for fields to receive continuous updates.
383-
types (List[ObjectType], optional): List of any types to include in schema that
383+
types (Optional[List[Type[ObjectType]]]): List of any types to include in schema that
384384
may not be introspected through root types.
385385
directives (List[GraphQLDirective], optional): List of custom directives to include in the
386386
GraphQL schema. Defaults to only include directives defined by GraphQL spec (@include

0 commit comments

Comments
 (0)