__all__ must be a sequence of strings: fix __init__.py and factory.py#247
Conversation
__all__ must be a sequence of strings, fix top level __init__.py__all__ must be a sequence of strings: fix __init__.py and factory.py
There was a problem hiding this comment.
Thanks @p-vdp for the contribution. However, given that #40 is a long-standing issue, my vote is to remove __all__ completely from both files instead. __all__ is optional to begin with, and only facilitates star imports, which are considered a bad practice.
Background: https://discuss.python.org/t/usage-of-all-in-init-py/17936
OK?
|
I opened this because passing objects through |
|
@p-vdp we can make a change like this for now and remove it later, but please keep the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #247 +/- ##
=======================================
Coverage 98.61% 98.61%
=======================================
Files 20 20
Lines 794 794
=======================================
Hits 783 783
Misses 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
See the documentation:
pytest ./testsis passing.