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

Add support for type annotations, typing.TypedDict and python dataclasses #167

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

jvllmr
Copy link

@jvllmr jvllmr commented Jul 10, 2022

My implementation of type annotations and typing.TypedDict support.
I hope you don't mind the changed quotes in test_main.py, I forgot that my formatter is enabled :(

closes #166

@@ -88,7 +88,7 @@ class GenFactory(_.with_metaclass(GenFactoryMeta)):
t.URL: faker.url,
t.UUID: faker.uuid,
t.JSON: faker.json,
type(None): '',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was there an empty string value?

@jvllmr jvllmr changed the title Add support for type annotations and typing.TypedDict Add support for type annotations, typing.TypedDict and python dataclasses Jul 10, 2022
@jvllmr
Copy link
Author

jvllmr commented Jul 10, 2022

Added support for python dataclasses as well.

closes #113

@gcavalcante8808
Copy link

Hey @jvllmr, is there an ETA or any plans to merge this PR? I'm really interested in use faker to randomize dataclass instances =D

@jvllmr
Copy link
Author

jvllmr commented Feb 28, 2023

I'm not the maintainer so I don't have any influence on the process.

@jvllmr
Copy link
Author

jvllmr commented Mar 1, 2023

Any opinion on this, @klen ?

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

Successfully merging this pull request may close these issues.

Support for type annotations and TypedDict
2 participants