Skip to content

Commit df9f3fc

Browse files
authored
docs: fix incorrect type annotation in schema extensions resolve example (#4282)
1 parent 0764a66 commit df9f3fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/guides/custom-extensions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ check out [field extensions](field-extensions.md).
3939
Note that `resolve` can also be implemented asynchronously.
4040

4141
```python
42+
from graphql import GraphQLResolveInfo
4243
from strawberry.extensions import SchemaExtension
4344

4445

4546
class MyExtension(SchemaExtension):
46-
def resolve(self, _next, root, info: strawberry.Info, *args, **kwargs):
47+
def resolve(self, _next, root, info: GraphQLResolveInfo, *args, **kwargs):
4748
return _next(root, info, *args, **kwargs)
4849
```
4950

0 commit comments

Comments
 (0)