fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
MIT License
2.45k stars 118 forks source link

improvement: python async snippets now leverage asyncio run #3961

Closed armandobelardo closed 4 days ago

armandobelardo commented 4 days ago
asyncio.run(
    main(),
)

any chance we can disable the trailing comma on this function invocation? i think there must be some boolean we should be able to set

There's not a flag today since it's on the node-writer level it looks like, so you'd have to mode the entire snippet as should_format_as_snippet=False which is odd Will add one for this though