kennethreitz / crayons

Text UI colors for Python.
https://pypi.python.org/pypi/crayons
MIT License
423 stars 30 forks source link

Help: Why pylint gives me an error of `no-member`? #23

Closed AtomicVar closed 5 years ago

AtomicVar commented 5 years ago

Why pylint gives me an error Module 'crayons' has no 'yellow' member when I write

import crayons
...
...
print(crayons.yellow("Bot > " + response(query), bold=True))
timofurrer commented 5 years ago

crayons generates the color functions like crayons.yellow, crayons.red, ... dynamically. There is no way for pylint to know that those functions actually exists.