Skip to content

Commit 05afca9

Browse files
committed
Fix
1 parent 06568e3 commit 05afca9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

drift/core/mock_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .json_schema_helper import SchemaMerges
1818
from .types import CleanSpanData
1919

20-
from .json_schema_helper import JsonSchema, JsonSchemaHelper
20+
from .json_schema_helper import JsonSchemaHelper
2121
from .types import (
2222
Duration,
2323
PackageType,
@@ -92,7 +92,7 @@ def convert_mock_request_to_clean_span(
9292
input_schema=input_result.schema,
9393
input_schema_hash=input_result.decoded_schema_hash,
9494
input_value_hash=input_result.decoded_value_hash,
95-
output_schema=JsonSchema(),
95+
output_schema=None, # type: ignore[arg-type] - Must be None to avoid betterproto serialization issues
9696
output_schema_hash="",
9797
output_value_hash="",
9898
kind=kind,

drift/instrumentation/psycopg2/instrumentation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from ...core.communication.types import MockRequestInput
2424
from ...core.drift_sdk import TuskDrift
25-
from ...core.json_schema_helper import JsonSchema, JsonSchemaHelper
25+
from ...core.json_schema_helper import JsonSchemaHelper
2626
from ...core.tracing import TdSpanAttributes
2727
from ...core.types import (
2828
CleanSpanData,
@@ -675,8 +675,8 @@ def _try_get_mock(
675675
submodule_name="query",
676676
input_value=input_value,
677677
output_value=None,
678-
input_schema=JsonSchema(),
679-
output_schema=JsonSchema(),
678+
input_schema=None, # type: ignore[arg-type]
679+
output_schema=None, # type: ignore[arg-type]
680680
input_schema_hash=input_result.decoded_schema_hash,
681681
output_schema_hash="",
682682
input_value_hash=input_result.decoded_value_hash,

0 commit comments

Comments
 (0)