Vyvyan Basterd on Nostr: what's the best practice for type annotations in a python class where most methods ...
what's the best practice for type annotations in a python class where most methods return None? It feels lame to constantly repeat yourself with -> None: everywhere
Published at
2024-12-05 13:56:42 UTCEvent JSON
{
"id": "862bfa2eaa62d1e8279140c0f086183e6cc97dcb026c3c0de054e5fc275f48f6",
"pubkey": "f751f8414475e95f4a1ef489ee3f727424b0b6c168bc2573ba064ea69b204c47",
"created_at": 1733407002,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@neurobashing/113600561322468849",
"web"
],
[
"proxy",
"https://mastodon.social/users/neurobashing/statuses/113600561322468849",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/neurobashing/statuses/113600561322468849",
"pink.momostr"
],
[
"-"
]
],
"content": "what's the best practice for type annotations in a python class where most methods return None? It feels lame to constantly repeat yourself with -\u003e None: everywhere",
"sig": "fb0a9d1559e5f0d1c96153908379cf358f425ad5c7122e854d83b4e175413fd804a682ce96bc613a509e2e5b5634e80f3e7c9f39a31c78d5003473406755a10e"
}