Skip to content

Commit 2aafebb

Browse files
authored
return>raise TypeError
1 parent 82ba053 commit 2aafebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/operads.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
" def __init__(self, name, dom, cod):\n",
7777
" if not (isinstance(dom, Ob) and isinstance(cod, list)\n",
7878
" and all([isinstance(x, Ob) for x in cod])):\n",
79-
" return TypeError\n",
79+
" raise TypeError\n",
8080
" self.name, self.dom, self._cod = name, dom, cod\n",
8181
" Tree.__init__(self, self, [], _scan=False)\n",
8282
"\n",

0 commit comments

Comments
 (0)