model-bakers/model_bakery

Explicitly add _fill_optional parameter to baker.make and baker.prepare

berinhard opened this issue · 1 comments

Recently I noticed that the _fill_optional argument isn't being displayed in Pycharm's helper dialog. Here's a print screen:

Screenshot from 2021-11-08 11-32-02

Expected behavior

The _fill_optional argument should be displayed the same way as the other parameters. The possible types are a list of strings with the field names or True to populate all boolean fields.

Actual behavior

The parameter is not being displayed.

Reproduction Steps

Try to use model-bakery with any modern Python IDE such as Pycharm or a configured VSCode.

Versions

Python: 3.8
Django: 2.2.
Model Bakery: 1.3.2

Fixed by #264