labd / commercetools-python-sdk

Commercetools Python SDK
https://commercetools-python-sdk.readthedocs.io/en/latest/
MIT License
17 stars 16 forks source link

Deprecation warnings form marshmallow #139

Closed jedie closed 1 year ago

jedie commented 1 year ago

I get warnings from marshmallow/fields.py:184: in __init__:

WARNING from "foo.py" in test_foobar():
".../commercetools/platform/models/_schemas/category.py RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead."

There are many marshmallow.fields.String(...) with the deprecated missing argument.

The deprecation is from 2021, see: https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#3130-2021-07-21

mvantellingen commented 1 year ago

Should be fixed in latest release, see https://pypi.org/project/commercetools/

Let us know if that is not the case

jedie commented 4 days ago

@mvantellingen it's still there in v2023.6.29

But it's:

.../commercetools/platform/models/_schemas/graph_ql.py RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'unknown': 'exclude'}

and

".../commercetools/platform/models/_schemas/product.py RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'unknown': 'exclude'}"

and

".../commercetools/platform/models/_schemas/error.py RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'unknown': 'exclude'}"