Type annotations for celery/utils/text.py#8107
Conversation
for more information, see https://pre-commit.ci
| kw: Any) -> str: | ||
| """Format value for printing to console.""" | ||
| if isinstance(value, dict): | ||
| return f'{{{sep} {pformat(value, 4, nl_width)[1:]}' |
There was a problem hiding this comment.
Syntax error here.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
There are some issues with the CI so the tests aren't running correctly. |
Sounds good, thanks! |
|
The failure is real: https://github.com/celery/celery/actions/runs/4332357772/jobs/7565145570#step:8:1002 |
|
My bad there, just fixed! |
|
Ah forgot to quote that, as it should be since it's conditionally imported if type checking is enabled. Fixed. Having trouble with tox for some reason when trying to test, it just hangs on the |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #8107 +/- ##
=======================================
Coverage 87.02% 87.02%
=======================================
Files 148 148
Lines 18444 18445 +1
Branches 2515 2515
=======================================
+ Hits 16050 16051 +1
Misses 2116 2116
Partials 278 278
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
* Annotate text * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * fix * Add to pyproject * Fix * remove comment * Small fix * remove comment * remoev unused arg * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * fix * build fix * type fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * pytest==7.2.2 (celery#8106) * Fix * Fix * Type checking fix * Update celery/utils/text.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
* Type annotations * small change * unused import * Type annotations for `celery/utils/text.py` (#8107) * Annotate text * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * fix * Add to pyproject * Fix * remove comment * Small fix * remove comment * remoev unused arg * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * fix * build fix * type fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * pytest==7.2.2 (#8106) * Fix * Fix * Type checking fix * Update celery/utils/text.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Asif Saif Uddin <auvipy@gmail.com> * Pre-commit fix * value error change * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Unit test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Comment fix * Fix * Future import * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * revert * format fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update celery/apps/beat.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Note: Before submitting this pull request, please review our contributing
guidelines.
Description
Type annotations for
celery/utils/text.pyas a part of #7394.