Add support for complex intermediate return types in fake method #1850
Labels
c: feature
Request for new feature
m: helpers
Something is referring to the helpers module
p: 1-normal
Nothing urgent
s: accepted
Accepted feature / Confirmed bug
Milestone
Clear and concise description of the problem
Currently it is not possible to use methods, that return complex objects in the fake method, because it will only display
[object]
.Suggested solution
Add support for the following syntax:
Which should be equivalent to:
faker.airline.airport().code
This should work for both method references and locale data references.
Alternative
No response
Additional context
Ref: #1733 (comment)
The text was updated successfully, but these errors were encountered: