Closed tristanlatr closed 2 years ago
Raising a string is not a thing in Python, these lines will trigger a TypeError.
Notice the difference:
>>> raise ValueError() Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError >>> raise 'ValueError' Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: exceptions must derive from BaseException
Running pytype on this project to fix the obvious TypeErrors would be a good thing until you develop your own type checker ;)
pytype
Thanks for your kind help! Will fix soon!
The issue has been fixed now.
Raising a string is not a thing in Python, these lines will trigger a TypeError.
Notice the difference:
Running
pytype
on this project to fix the obvious TypeErrors would be a good thing until you develop your own type checker ;)