You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In release 2.7.0, the type signature for AvroSerializer.__init__()'s to_dict parameter is incorrect. The type signature does not allow None as a value but the implementation defaults to and supports None as a value.
The type signature for the to_dict parameter should be modified to support being optional (example for Python 3.12):
error: Argument of type "None" cannot be assigned to parameter "from_dict" of type "(dict[Unknown, Unknown], SerializationContext) -> object" in function "__init__"
Type "None" is not assignable to type "(dict[Unknown, Unknown], SerializationContext) -> object" (reportArgumentType)
The text was updated successfully, but these errors were encountered:
Description
In release 2.7.0, the type signature for
AvroSerializer.__init__()
'sto_dict
parameter is incorrect. The type signature does not allowNone
as a value but the implementation defaults to and supportsNone
as a value.The type signature for the
to_dict
parameter should be modified to support being optional (example for Python 3.12):How to reproduce
Use
pyright
to check a module that callsAvroSerializer(…)
:and you will get the following error:
The text was updated successfully, but these errors were encountered: