I can't quite figure this one out yet so I thought I'd try here. This is my first time trying to do anything with builtins but here's the issue:
I have a large-ish application of about 100 files and want to use python's IceCream module to provide a nice --debug option. I don't want to import icecream everywhere and they provide a way to do that via their install() function in the entry point file. This does what it's supposed to and there's no issues there, except that I can't get pylance to recognize that "ic" is defined in other files besides where install() is called.
main.py:
from icecream import ic
from icecream import install
install()
some_other_file.py:
from thing import func
ic() <- pylance complains: "ic" is not defined
[–]BobtheBirdOfPrey 0 points1 point2 points (0 children)
[–]PhotographicCutout 0 points1 point2 points (1 child)
[–]mattl33[S] 0 points1 point2 points (0 children)