Skip to content

Commit 8e9c36a

Browse files
committed
remove trailing spaces
1 parent 2fd67a8 commit 8e9c36a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Person(PydanticObjectType):
120120
model = PersonModel
121121
# exclude specified fields
122122
exclude_fields = ("id",)
123-
123+
124124
full_name = graphene.String()
125125

126126
def resolve_full_name(self, info, **kwargs):
@@ -137,27 +137,27 @@ class NodeModel(BaseModel):
137137
id: int
138138
name: str
139139
labels: 'LabelsModel'
140-
140+
141141
class LabelsModel(BaseModel):
142142
node: NodeModel
143143
labels: typing.List[str]
144-
144+
145145
class Node(PydanticObjectType):
146146
class Meta:
147147
model = NodeModel
148-
148+
149149
class Labels(PydanticObjectType):
150150
class Meta:
151151
model = LabelsModel
152-
152+
153153

154154
Node.resolve_placeholders() # make the `labels` field work
155155
Labels.resolve_placeholders() # make the `node` field work
156156
```
157157

158158
### Full Examples
159159

160-
Please see [the examples directory](./examples) for more.
160+
Please see [the examples directory](./examples) for more.
161161

162162
### License
163163

@@ -175,7 +175,7 @@ Please see the [Contributing Guide](./CONTRIBUTING.md). Note that you must sign
175175

176176
#### Mappings
177177

178-
Note that even though Pydantic is perfectly happy with fields that hold mappings (e.g. dictionaries), because [GraphQL's type system doesn't have them](https://graphql.org/learn/schema/) those fields can't be exported to Graphene types. For instance, this will fail with an error `Don't know how to handle mappings in Graphene`:
178+
Note that even though Pydantic is perfectly happy with fields that hold mappings (e.g. dictionaries), because [GraphQL's type system doesn't have them](https://graphql.org/learn/schema/) those fields can't be exported to Graphene types. For instance, this will fail with an error `Don't know how to handle mappings in Graphene`:
179179

180180
``` python
181181
import typing
@@ -187,8 +187,8 @@ class Pet:
187187
class Person:
188188
name: str
189189
pets_by_name: typing.Dict[str, Pet]
190-
191-
class GraphQLPerson(PydanticObjectType):
190+
191+
class GraphQLPerson(PydanticObjectType):
192192
class Meta:
193193
model = Person
194194
```

0 commit comments

Comments
 (0)