Skip to content
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

What's the annotation to get completions? #1684

Closed
tony opened this issue Jul 18, 2022 · 2 comments
Closed

What's the annotation to get completions? #1684

tony opened this issue Jul 18, 2022 · 2 comments

Comments

@tony
Copy link
Contributor

tony commented Jul 18, 2022

  • Faker version: 13.15.0
  • OS: POSIX

Steps to reproduce

What I see often is using faker.Faker (GitHub Search):

from faker import Faker

def test_faker(faker: Faker):
    assert isinstance(faker.name(), str)

This example above is based on Pytest Fixture's examples

Expected behavior

Showing the instance methods, e.g. faker.name()

Actual behavior

However that generates this:

image

Next steps?

Not sure if this a "wontfix", "bug", or potential place where we can have a documentation improvement or workaround. Or maybe it's related / but not quite a duplicate.

@fcurella
Copy link
Collaborator

Duplicate of #1604

@fcurella fcurella marked this as a duplicate of #1604 Jul 18, 2022
@tony
Copy link
Contributor Author

tony commented Jul 18, 2022

@fcurella I will close this per #1604

@tony tony closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants