-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,6 @@ Define a marshmallow :class:`Schema <marshmallow.Schema>` to expose the model. | |
.. code-block:: python | ||
class PetSchema(ma.Schema): | ||
class Meta: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lafrech
Author
Member
|
||
ordered = True | ||
id = ma.fields.Int(dump_only=True) | ||
name = ma.fields.String() | ||
|
@@ -62,10 +58,6 @@ query arguments. | |
.. code-block:: python | ||
class PetQueryArgsSchema(ma.Schema): | ||
class Meta: | ||
ordered = True | ||
name = ma.fields.String() | ||
|
+1.
My guess is that
ordered = True
is completely unnecessary on Python>=3.6, since dictionary order is guaranteed to be in insertion order.