Skip to content

Commit

Permalink
remove subclassing object
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatBahram committed May 29, 2019
1 parent 95bfe2e commit 1fca27c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 01-property.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@
"metadata": {},
"outputs": [],
"source": [
"class Movie(object):\n",
"class Movie:\n",
" def __init__(self, title, rating, runtime, budget, gross):\n",
" self._rating = None\n",
" self._runtime = None\n",
Expand Down Expand Up @@ -647,7 +647,7 @@
"metadata": {},
"outputs": [],
"source": [
"class Movie(object):\n",
"class Movie:\n",
" rating = NonNegative(0)\n",
" runtime = NonNegative(0)\n",
" budget = NonNegative(0)\n",
Expand Down

0 comments on commit 1fca27c

Please sign in to comment.