Skip to content

Commit

Permalink
Updated method descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimarahman committed Jul 17, 2024
1 parent f9c5b43 commit e06efef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nypl_py_utils/classes/avro_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ class AvroDecoder(AvroClient):

def decode_record(self, record):
"""
Decodes a single record represented using the given Avro schema.
Decodes a single record represented using the given Avro
schema. Input must be a bytes-like object.
Returns a dictionary where each key is a field in the schema.
"""
Expand All @@ -140,7 +141,8 @@ def decode_record(self, record):

def decode_batch(self, record_list):
"""
Decodes a list of JSON records using the given Avro schema.
Decodes a list of JSON records using the given Avro schema. Input
must be a list of bytes-like objects.
Returns a list of strings where each string is a decoded record.
"""
Expand Down

0 comments on commit e06efef

Please sign in to comment.