fix for new mypy
MODIFY
fastavro/_schema.pyi
fastavro/_schema.pyi
@@ -11,7 +11,7 @@ def load_schema(
repo: Optional[AbstractSchemaRepository] = ...,
named_schemas: Optional[NamedSchemas] = ...,
_write_hint: bool = ...,
- _injected_schemas: Set[str] = ...,
+ _injected_schemas: Optional[Set[str]] = ...,
) -> Schema: ...
def parse_schema(
schema: Schema,

MODIFY
fastavro/_schema_py.py
fastavro/_schema_py.py
@@ -540,7 +540,7 @@ def load_schema(
repo: Optional[AbstractSchemaRepository] = None,
named_schemas: Optional[NamedSchemas] = None,
_write_hint: bool = True,
- _injected_schemas: Set[str] = None,
+ _injected_schemas: Optional[Set[str]] = None,
) -> Schema:
"""Returns a schema loaded from repository.

fix for new mypy