Yann Büchau :python: on Nostr: :python: #Python help please: How does one programmatically access docstrings ...
#Python help please:
How does one programmatically access docstrings 'attached' to dataclasses fields?
sphinx can do it, so it's possible, but I can't find how.
Any ideas?
Published at
2024-06-24 16:22:59Event JSON
{
"id": "d6c0285e6d413ae8ead4cb0ebab027e4a5d73bfda5e583d22dec025737a01bb4",
"pubkey": "0abc897a05eca0849f658dc45fb983e46041d357150b09df857131e7a7552848",
"created_at": 1719246179,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"emoji",
"python",
"https://cdn.fosstodon.org/custom_emojis/images/000/025/124/original/7e1fe81995650028.png"
],
[
"proxy",
"https://fosstodon.org/users/nobodyinperson/statuses/112672517610346096",
"activitypub"
]
],
"content": ":python: #Python help please:\n\nHow does one programmatically access docstrings 'attached' to dataclasses fields?\n\nsphinx can do it, so it's possible, but I can't find how. \n\nAny ideas?\n\nhttps://cdn.fosstodon.org/media_attachments/files/112/672/512/359/269/694/original/ae49ed401187df5c.png",
"sig": "9c289e8a9a78440b9131b4a72a592198c91c6ef34bb56853ce1ebfb5413258aaba058a3949b4107a8bdda162b52b59115318eb8fc08437ca21c15013b938a3da"
}