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
I'm encountering a warning from PyCharm related to fields.Nested after upgrading to marshmallow version 3.15.0. The warning states that fields.Nested expects a type SchemaABC, but it gets a type [UserSerializer] instead. This issue did not occur in earlier versions.
Here is a simple example to demonstrate the issue:
This warning appears when using fields.Nested with a schema class. It seems that the type checking introduced in version 3.15.0 does not recognize schema classes correctly.
Is there a new way to define nested schemas, or is this a bug that needs to be addressed?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hi,
I'm encountering a warning from PyCharm related to
fields.Nested
after upgrading tomarshmallow
version 3.15.0. The warning states thatfields.Nested
expects a typeSchemaABC
, but it gets a type[UserSerializer]
instead. This issue did not occur in earlier versions.Here is a simple example to demonstrate the issue:
Warning:
This warning appears when using
fields.Nested
with a schema class. It seems that the type checking introduced in version 3.15.0 does not recognize schema classes correctly.Is there a new way to define nested schemas, or is this a bug that needs to be addressed?
Thank you for your help!
The text was updated successfully, but these errors were encountered: