-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not getting type hint sugesstion in vs code 🙏🙏🙏 #2035
Comments
Could you please try to update to the latest version and try again? |
@stefan6419846 installing faker from git does work now, so it should be a matter of pushing a new release |
Version 24.14.1 has been released already including the corresponding fix: https://github.com/joke2k/faker/blob/refs/tags/v25.0.0/CHANGELOG.md#v24141---2024-04-28 |
I didn’t test 24.14.1, but 25.0.0 doesn’t package pyi file |
I do not know how the release bundles are built, but running the usual |
yeah, this works too tbh I've never used vanilla python build backend, so not sure why this is happening. My best guess is that it should also be included here: Line 66 in 7f5dc14
|
I've just released v25.0.1. Could you give it a try? |
I just had a look at the wheel and the file seems to be part of it now:
|
i am not good enough in python, i dont understand the things you have said, like this i want to say in the docs of faker it says a lot of things available, like in the official docs it shows alot of list but when i do this from faker import Faker and then use fake, is this here any issue, or providers what it say, i mostly want for type hint, as one example is, a fun which returns string, and after write the fun when i write (fun()). then here shows a lot of string related type hint, when a fun returns a int, it shows int related type hint, like this, so this will mroe helpful, that why i am saying about the type hint in this faker so that if vs code give sugesstion and we can know what a fun will return what kind of obj, then we can perform the operation on this obj easily like this case i want to get the lower letter, so for this, as when i press . i dont get any type hint , so i mistakes sometime wehre to give the lower() |
Please upgrade to the latest version and try again. In theory, it should work now as the required file is being shipped now. |
@RanaRana10 you can check Faker's version with >>> import faker
>>> faker.VERSION
'25.0.1' |
Here my question is after i defines,
fake = Faker()
and then i try to use fake.name, fake.address etc, i though when i write the dot(.) i should get some type hint sugestion of list parameter or fun or so on which i thought we should see it,
see i am not getting any sugesstion but when i use other library or suppose i am using, the random
see like this case i am getting sugesstion , like this, how i can get type hint when using this faker libarry in my vs code, as for otehr libaryr i use i always see the type hint
The text was updated successfully, but these errors were encountered: