Closed trim21 closed 1 month ago
Hi @trim21, thanks for your bug report. I agree that Connection
should be in __all__
. I tried to reproduce the warning though, but found I couldn't. So I created a file called test.py
:
from pg8000.native import Connection
and ran:
python -Werror test.py
but this didn't give a warning. How did you get it to give a warning?
Hi @trim21, thanks for your bug report. I agree that
Connection
should be in__all__
. I tried to reproduce the warning though, but found I couldn't. So I created a file calledtest.py
:
from pg8000.native import Connection
and ran:
python -Werror test.py
but this didn't give a warning. How did you get it to give a warning?
linter
That makes sense. Which linter is it? I run things through Flake8 and it didn't pick this up.
That makes sense. Which linter is it? I run things through Flake8 and it didn't pick this up.
it's pycharm built-in linter rules.
Thanks for your work on this @trim21, I've added some tests and used your patch at https://github.com/tlocke/pg8000/commit/b30177e478c446f3e26eef94a49c912e28ffe2b6
Connection
is missing inpg8000.native.__all__
cause a warning onfrom pg8000.native import Connection