tBuLi/kingdon

TypeError: 'int' object is not callable

Closed this issue · 0 comments

  • kingdon version: 1.1.0
  • Python version:
  • Operating System:

Description

Problem is in getattr, which will always return 0 if the attr doesn't exist. This is wrong, we should only behave that way if the attr is in canon2bin, i.e. a blade like e12.

What I Did

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[8], line 1
----> 1 x.set(y)

TypeError: 'int' object is not callable