Open alexmojaki opened 2 months ago
Is this a problem on PyCharm? I only see PyCharm users caring about __all__
(not saying is not important, just trying to understand).
I'm not sure I understand the importance of __all__
either, but it seems like it matters, e.g. https://github.com/alexmojaki/pure_eval/pull/20
Presumably I'm supposed to keep __all__
and the other contents of logfire_api/__init__.pyi
up to date. The tests make it look like they're checking that, and that they'll fail if I forget. So it's a bit worrying that I can actually delete everything inside the file and the tests still pass.
I'm not sure I understand the importance of all either, but it seems like it matters, e.g. https://github.com/alexmojaki/pure_eval/pull/20
What the user said about pyright
is not correct. I use pyright in strict mode on VSCode.
It just uses
logfire.__all__
in both versions oftest_runtime
.logfire_api.__all__
doesn't actually exist at runtime when logfire isn't importable.