Skip to content

Commit

Permalink
docs/class_schema: fix formatting (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
huwcbjones committed Sep 19, 2023
1 parent f315d71 commit d6396c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions marshmallow_dataclass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def class_schema(
Marking dataclass fields as non-initialized (``init=False``), by default, will result in those
fields from being exluded in the schema. To override this behaviour, set the ``Meta`` option
``include_non_init=True``.
>>> @dataclasses.dataclass()
... class C:
... important: int = dataclasses.field(init=True, default=0)
Expand Down

0 comments on commit d6396c1

Please sign in to comment.