Skip to content

Commit

Permalink
Merge pull request marshmallow-code#1231 from marshmallow-code/docs_p…
Browse files Browse the repository at this point in the history
…y3_no_object

Docs: Remove (object) from class definitions (useless in Python 3)
  • Loading branch information
sloria committed Jun 5, 2019
2 parents c5a5c05 + 1cfad25 commit fa44cc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/nesting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Schemas can be nested to represent relationships between objects (e.g. foreign k
import datetime as dt
class User(object):
class User:
def __init__(self, name, email):
self.name = name
self.email = email
self.created_at = dt.datetime.now()
self.friends = []
self.employer = None
class Blog(object):
class Blog:
def __init__(self, title, author):
self.title = title
self.author = author # A User object
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Let's start with a basic user "model".
import datetime as dt
class User(object):
class User:
def __init__(self, name, email):
self.name = name
self.email = email
Expand Down

0 comments on commit fa44cc0

Please sign in to comment.