From f4a6c65b11e36fdf678be5fe9ca832acc7075979 Mon Sep 17 00:00:00 2001 From: rafalp Date: Sun, 6 Oct 2024 00:21:47 +0200 Subject: [PATCH] Expand readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index cf73dc6..07ee89b 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,11 @@ This API aims to use ALL features from GraphQL Modules v2. It can also be used a `list` is [invariant in mypy](https://mypy.readthedocs.io/en/stable/common_issues.html#variance). A list of `type[GraphQLObject]`, like one from the `example.queries.__init__` produces an error because `list[type[GraphQLObject]]` is incompatible with `list[type[GraphQLType]]`. +Replacing `list` with `Iterable` may be enough to fix this. + ## Resolvers need to be `@classmethod` or `@staticmethod` to keep linters happy. Linters will scream that resolver method decorated with `@ObectType.resolver` is missing `self` first attribute. +This may require mypy plugin to fix, but its good idea to look how Graphene and Strawberry are solving this.