Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Newline to separate interactive section, like above examples
  • Loading branch information
hauntsaninja authored and JosephSBoyle committed Dec 24, 2022
commit f97869a88eed0656f8f917f22528125e93de3da5
1 change: 1 addition & 0 deletions Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ is to use :mod:`dataclasses` for this purpose::
salary: int

john = Employee("john", "computer lab", 1000)

>>> john.dept
# "computer lab"
>>> john.salary
Expand Down