Skip to content

get_provider_map for type Any #515

Answered by guacs
guillaume-alliander asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, Any is handled specially and polyfactory always generates a random string for that. This probably isn't the right way to do this, but instead we should be using the provider map to create the value for a field annotated with Any. Feel free to create an issue for this because I think you have a valid usecase :) If not, I can create the issue as well.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by guillaume-alliander
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants