chore: tighten mcp source typing

This commit is contained in:
lda
2026-06-09 07:03:36 +07:00 Verified
parent 19d65be77c
commit 5ebe1451c7
19 changed files with 103 additions and 43 deletions
+3 -1
View File
@@ -165,7 +165,9 @@ def test_connection_config_to_registry_entry_accepts_flat_http_metadata() -> Non
def test_connection_config_to_registry_entry_requires_transport_metadata() -> None:
connection = _LegacyConnectionLike(id="github.work", server="github", account="work")
connection = _LegacyConnectionLike(
id="github.work", server="github", account="work"
)
with pytest.raises(ValueError, match="requires metadata.transport"):
connection_config_to_registry_entry(connection)