Closed lfernandezpricco closed 4 years ago
I'm closing this. Even though the error said "line 1134, in draw_rect bg_blend, TypeError: an integer is required" bg_blend was fine, what was requiring and integer was the parameter 'ch'.
Sorry for the noise.
That's okay, this is the right place for these kinds of issues.
If you had used Python type hinting you might have caught this issue earlier. MyPy or your IDE could have told you which parameter had an incorrect type.
After passing the constant tcod.BKGND_NONE to bg_blend in tcod.console.Console.draw_rect() I keep getting a TypeError sayin that 'an integer is required' I've tried to cast tcod.BKGND_NONE to an integer, bg_blend=int(libtcod.BKGND_NONE) but the result is the same. Even after passing a plain integer I keep getting the same error.
File "/PycharmProjects/rogue/venv/lib/python3.7/site-packages/tcod/console.py", line 1134, in draw_rect bg_blend, TypeError: an integer is required
I'm using the last version of tcod (11.9.2) and these are the functions that calls the draw_rect() method: