Closed willmcgugan closed 3 weeks ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 90.00000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 98.25%. Comparing base (
60f3b61
) to head (02f3d14
). Report is 9 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
rich/cells.py | 90.00% | 1 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I would recommend lazily defining constants like that so import time is not affected, especially since that is critical for command line applications. See PEP 562 https://peps.python.org/pep-0562/
Agree in principle, but this data is used by virtually anything Rich does. So it is always needed.
It also turns out that it is faster to compute this than import it. 0.11ms to compute version 0.39ms to import.
So on my Macbook at least, it is a win to compute it.
Definitely makes sense if it's used everywhere, thanks! I'm just always looking for ways to reduce the import time of Rich, currently I think it could be better but I haven't had much time to look into that.