Lucas Garron on Nostr: I'm glad that Python supports optional type syntax out of the box, but… I can't ...
I'm glad that Python supports optional type syntax out of the box, but… I can't figure out how to use it for anything more than annotation and autocompletion convenience?
How do I lint to detect an argument to a function with an obviously incorrect type?!?
Published at
2023-06-23 01:16:28Event JSON
{
"id": "24f467e1e266412aeef699494ce036d73394ca869caca16e92119db7fd291d7b",
"pubkey": "a9cae6845ce0f09f4805191050035f3d7e0a9eb3d7ddc0d53899605970a088f1",
"created_at": 1687482988,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/lgarron/statuses/110590885154331380"
]
],
"content": "I'm glad that Python supports optional type syntax out of the box, but… I can't figure out how to use it for anything more than annotation and autocompletion convenience?\n\nHow do I lint to detect an argument to a function with an obviously incorrect type?!?",
"sig": "6b051826b38c06ada5b3bfbac95ea3884e3afd25f1003951611721a43338850c345c362aa418f1cef650e1867f93d4d0d09897a11883ae2e55bfc42a9a5dcfe0"
}