Skip to content

Commit 8950405

Browse files
github-actions[bot]MichaelRBlackclaude
authored andcommitted
[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 <4128408+MichaelRBlack@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ff08ceb commit 8950405

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

task-sdk/src/airflow/sdk/definitions/connection.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ def get_uri(self) -> str:
157157
"""Generate and return connection in URI format."""
158158
from urllib.parse import parse_qsl
159159

160-
if self.conn_type and "_" in self.conn_type:
161-
log.warning(
162-
"Connection schemes (type: %s) shall not contain '_' according to RFC3986.",
163-
self.conn_type,
164-
)
165160
if self.conn_type:
166161
uri = f"{self.conn_type.lower().replace('_', '-')}://"
167162
else:

0 commit comments

Comments
 (0)