We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4f811 commit 623a338Copy full SHA for 623a338
src/marshmallow/schema.py
@@ -315,6 +315,8 @@ class AlbumSchema(Schema):
315
316
OPTIONS_CLASS = SchemaOpts # type: type
317
318
+ set_class = OrderedSet
319
+
320
# These get set by SchemaMeta
321
opts = None # type: SchemaOpts
322
_declared_fields = {} # type: typing.Dict[str, ma_fields.Field]
@@ -411,10 +413,6 @@ def __repr__(self) -> str:
411
413
def dict_class(self) -> type:
412
414
return OrderedDict if self.ordered else dict
415
- @property
- def set_class(self) -> type:
416
- return OrderedSet if self.ordered else set
417
-
418
@classmethod
419
def from_dict(
420
cls,
0 commit comments