fix: silence genson untyped-import errors in schema accumulator

This commit is contained in:
2026-05-31 23:58:26 +08:00
parent 5bc7e5b89d
commit 0efd906a07
+3 -2
View File
@@ -2,14 +2,15 @@ from __future__ import annotations
from typing import Any
from genson import SchemaBuilder
from genson import SchemaBuilder # pyright: ignore[reportMissingTypeStubs]
class SchemaAccumulator:
"""Accumulate JSON samples into a widening JSON Schema (genson-backed)."""
def __init__(self) -> None:
self._builder = SchemaBuilder()
# genson is untyped; pin builder to Any so member/return types stay clean.
self._builder: Any = SchemaBuilder()
self._count = 0
def add(self, value: Any) -> None: