This is an automated email from the ASF dual-hosted git repository.
rahulvats pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-2-test by this push:
new beee8b693c0 [v3-2-test] Remove false-positive RFC3986 underscore
warning from Connection.get_uri() (#64345) (#64607)
beee8b693c0 is described below
commit beee8b693c04e11b63e132ef862b4018fdb03a0d
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Apr 3 01:26:22 2026 +0530
[v3-2-test] Remove false-positive RFC3986 underscore warning from
Connection.get_uri() (#64345) (#64607)
[v3-2-test] Remove false-positive RFC3986 underscore warning from
Connection.get_uri()
Co-authored-by: Michael Black
<[email protected]>
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
---
task-sdk/src/airflow/sdk/definitions/connection.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/task-sdk/src/airflow/sdk/definitions/connection.py
b/task-sdk/src/airflow/sdk/definitions/connection.py
index 21eed4216f5..edb65ed7a94 100644
--- a/task-sdk/src/airflow/sdk/definitions/connection.py
+++ b/task-sdk/src/airflow/sdk/definitions/connection.py
@@ -157,11 +157,6 @@ class Connection:
"""Generate and return connection in URI format."""
from urllib.parse import parse_qsl
- if self.conn_type and "_" in self.conn_type:
- log.warning(
- "Connection schemes (type: %s) shall not contain '_' according
to RFC3986.",
- self.conn_type,
- )
if self.conn_type:
uri = f"{self.conn_type.lower().replace('_', '-')}://"
else: