billythegoat356 / pystyle

The source of my Python library, pystyle.
https://pypi.org/project/pystyle/
Eclipse Public License 2.0
202 stars 13 forks source link

Bug in pystyle #43

Closed Thecode764 closed 1 month ago

Thecode764 commented 1 month ago

Hi i think this is a bug

my code

from pystyle import Anime, Colors

Anime.Fade(text="Hello world", color=Colors.green_to_yellow, mode=1)

Error error File "/home/null/test/main.py", line 3, in Anime.Fade(text="Hello world", color=Colors.green_to_yellow, mode=1) File "/home/null/test/venv/lib/python3.12/site-packages/pystyle/init.py", line 561, in Fade Anime._anime(text, color, mode, interval) File "/home/null/test/venv/lib/python3.12/site-packages/pystyle/init.py", line 667, in _anime _stdout.write(mode(color, text)) ^^^^^^^^^^^^^^^^^ TypeError: 'int' object is not callable