You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subtraction with an tomlkit.items.Integer and a basic python float leads to a NotImplementedType error.
The issue seems to be the same category like the addition issue #214 (with the same solution?).
stack trace:
>>> doc['table']['my_int'] - 5.0Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/robot/Library/Python/3.10/lib/python/site-packages/tomlkit/items.py", line 657, in __sub__ return self._new(result) File "/Users/robot/Library/Python/3.10/lib/python/site-packages/tomlkit/items.py", line 673, in _new return Integer(result, self._trivia, raw) File "/Users/robot/Library/Python/3.10/lib/python/site-packages/tomlkit/items.py", line 617, in __new__ return super().__new__(cls, value)TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NotImplementedType'
Subtraction with an
tomlkit.items.Integer
and a basic pythonfloat
leads to aNotImplementedType
error.The issue seems to be the same category like the addition issue #214 (with the same solution?).
stack trace:
minimal code which reproduces the error:
used tomlkit version:
0.11.6
The text was updated successfully, but these errors were encountered: