You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "kartik00052 (via GitHub)" <gi...@apache.org> on 2026/09/27 16:04:27 UTC
[PR] Fix misleading md5 wrapper docstring [airflow]
kartik00052 opened a new pull request, #73804:
URL: https://github.com/apache/airflow/pull/73804
The `string` parameter of `airflow.utils.hashlib_wrapper.md5` defaults to empty *bytes* and is handed straight to `hashlib.md5`, which rejects a `str` with a `TypeError`. The previous wording read as if a `str` were accepted, so a caller following the documentation could pass one and only discover the mismatch at runtime.
Documentation wording only — no behaviour change and no test needed.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code Sonnet
Generated-by: Claude Code Sonnet following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix misleading md5 wrapper docstring [airflow]
Posted by "Andrushika (via GitHub)" <gi...@apache.org>.
Andrushika commented on code in PR #73804:
URL: https://github.com/apache/airflow/pull/73804#discussion_r4116033050
##########
airflow-core/src/airflow/utils/hashlib_wrapper.py:
##########
@@ -28,7 +28,7 @@ def md5(string: ReadableBuffer = b"", /) -> hashlib._Hash:
"""
Safely allows calling the ``hashlib.md5`` function when ``usedforsecurity`` is disabled in configuration.
Review Comment:
This summary also seems misleading. Consider fixing it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix misleading md5 wrapper docstring [airflow]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@airflow.apache.org>.
github-actions[bot] commented on PR #73804:
URL: https://github.com/apache/airflow/pull/73804#issuecomment-6810482668
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix misleading md5 wrapper docstring [airflow]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@airflow.apache.org>.
github-actions[bot] closed pull request #73804: Fix misleading md5 wrapper docstring
URL: https://github.com/apache/airflow/pull/73804
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org