kojiromike commented on a change in pull request #841:
URL: https://github.com/apache/avro/pull/841#discussion_r471440814



##########
File path: lang/py/avro/io.py
##########
@@ -640,14 +644,19 @@ def match_schemas(writers_schema, readers_schema):
       return True
     return False
 
-  def __init__(self, writers_schema=None, readers_schema=None):
+  def __init__(self, writers_schema=None, readers_schema=None, unit_db=None):
     """
     As defined in the Avro specification, we call the schema encoded
     in the data the "writer's schema", and the schema expected by the
     reader the "reader's schema".
     """
     self._writers_schema = writers_schema
     self._readers_schema = readers_schema
+    if (unit_db is not None) and (not isinstance(unit_db, UnitAnalysisDB)):

Review comment:
       Update: Now that we've dropped Python 2 support, type hints will work! 
Feel free to add actual type hints.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to