faker icon indicating copy to clipboard operation
faker copied to clipboard

Asking about vs code sugession in methods

Open RanaUniverse opened this issue 9 months ago • 4 comments

Image

Hello everyone who is developing this library, i have a question, see when i write any code with faker's methods like in this case i am using .word but here i got the sugession as arguments value = ... why i got ..., i wish i got as it has the default value like

i wish in the vs code sugession it will show

words(nb: int = 3, ext_word_list: List[str] | None = None, part_of_speech: str | None = None, unique: bool = False) → List[str]

it should shows the default value as shows in the docs, why it is using the ... in this.

i want to know why is this , and any way to impliment this in the librarry or any sugession why you have not changes this.

RanaUniverse avatar Mar 24 '25 08:03 RanaUniverse

i means to say suppose i make a class, when i am making the instance of it, it shows the sugession with the value i have assign with this. Image

i am asking like this sugession to shows in vs code for the faker library's methods, how we can impliment this, or how i can help this, any sugession

RanaUniverse avatar Mar 24 '25 08:03 RanaUniverse

These autocompletions stem from the typing information provided by faker, where it is common to replace actual values with placeholders (an ellipsis). For this to display the actual values, the typing stub generator would have to be adapted.

stefan6419846 avatar Mar 24 '25 09:03 stefan6419846

i dont get it, is this the cause of the faker library didnot add this functionality, or i manually need to do something so that it will show the real value in the functions calling when i am calling this.

Did you understand what is this i need to do to see the values of the argumens or we need to do chnages in the faker library.

i means to do a way so that it will not shows ...

RanaUniverse avatar Mar 24 '25 10:03 RanaUniverse

The autocompletion of your IDE uses the typing stubs provided by Faker, which uses the placeholder (ellipsis) for the default values instead of the real ones. To get the actual values, the typing stub generation script of Faker needs to be adapted.

If you are not familiar with the terms I have been referring to, please consider researching them yourself.

stefan6419846 avatar Mar 24 '25 12:03 stefan6419846

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 23 '25 02:06 github-actions[bot]