@@ -184,7 +184,7 @@ class AsyncAvroSerializer(AsyncBaseSerializer):
184184 'subject.name.strategy' : topic_subject_name_strategy ,
185185 'schema.id.serializer' : prefix_schema_id_serializer }
186186
187- async def __init__ (
187+ async def __init_impl (
188188 self ,
189189 schema_registry_client : AsyncSchemaRegistryClient ,
190190 schema_str : Union [str , Schema , None ] = None ,
@@ -282,6 +282,8 @@ async def __init__(
282282 rule .configure (self ._registry .config () if self ._registry else {},
283283 rule_conf if rule_conf else {})
284284
285+ __init__ = __init_impl
286+
285287 def __call__ (self , obj : object , ctx : Optional [SerializationContext ] = None ) -> Optional [bytes ]:
286288 return self .__serialize (obj , ctx )
287289
@@ -436,7 +438,7 @@ class AsyncAvroDeserializer(AsyncBaseDeserializer):
436438 'subject.name.strategy' : topic_subject_name_strategy ,
437439 'schema.id.deserializer' : dual_schema_id_deserializer }
438440
439- async def __init__ (
441+ async def __init_impl (
440442 self ,
441443 schema_registry_client : AsyncSchemaRegistryClient ,
442444 schema_str : Union [str , Schema , None ] = None ,
@@ -505,6 +507,8 @@ async def __init__(
505507 rule .configure (self ._registry .config () if self ._registry else {},
506508 rule_conf if rule_conf else {})
507509
510+ __init__ = __init_impl
511+
508512 def __call__ (self , data : bytes , ctx : Optional [SerializationContext ] = None ) -> Union [dict , object , None ]:
509513 return self .__deserialize (data , ctx )
510514
0 commit comments