Skip to content

Commit

Permalink
fixup! [a] Create PFB-based verbatim manifest format for AnVIL (#6040)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc committed Apr 20, 2024
1 parent 15b4d2a commit fab88f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/azul/service/avro_pfb.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,15 +644,15 @@ def _entity_schema_recursive(field_types: FieldTypes,

def _update_replica_schema(*,
schema: MutableJSON,
path: Sequence[str],
path: tuple[str, ...],
key: str,
value: AnyMutableJSON):
"""
Update in place a (part of an) existing PFB schema to ensure that it
accommodates a given (part of a) JSON document. The schema will only ever
expand, so after updating it will describe a superset of the documents that
it described pre-update. Starting from an empty schema, repeatedly calling
this function this allows us to discover a general schema for a series of
this function allows us to discover a general schema for a series of
documents of unknown shape.
:param schema: a part of a PFB schema. It may be empty.
Expand Down Expand Up @@ -723,7 +723,7 @@ def _update_replica_schema(*,


def _new_replica_schema(*,
path: Sequence[str],
path: tuple[str, ...],
value: AnyJSON,
) -> AnyMutableJSON:
"""
Expand Down

0 comments on commit fab88f5

Please sign in to comment.