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 think the parameter options will be irrelevant for the users. Because users have to look at the Faker docs, only then will they be able to use those parameters. Otherwise given function will raise an error if someone enters any parameter. A null can be returned but that will not give a user a clear idea of what's happening. The options parameter will only be useful for those who have the idea of Faker.
For example:
Suppose -
localization = "it_IT"
what = "name"
options = '{"x": null}'
if someone uses this option then the function will generate TypeError: Provider.name() got an unexpected keyword argument 'x'. We can handle this error and None can be returned. But that will not let the user know what he did wrong.
Check the idea has not already been suggested
Edit the title above with self-explanatory function name and argument names
BigFunction Description as it would appear in the documentation
Use https://faker.readthedocs.io/ to generate fake data.
Code should look something like:
Examples of (arguments, expected output) as they would appear in the documentation
The text was updated successfully, but these errors were encountered: