Sean Gillies on Nostr: I think I found a nice geospatial use case for Python's typing.Protocol. Unless I'm ...
I think I found a nice geospatial use case for Python's typing.Protocol. Unless I'm mistaken, two projects can contain a common protocol, and have isinstance() interoperability without depending on each other in the import sense.
Published at
2024-07-19 03:31:51Event JSON
{
"id": "7fd9ccdc2935ca1b13cacc49182b8cba314d215827a25e9501da97eb60ea35f6",
"pubkey": "b469965a63eaf4ebe3a59dc7bcef56e38d183a5ecb3fb619266881372a46f5bc",
"created_at": 1721359911,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/sgillies/statuses/112811043154496312",
"activitypub"
]
],
"content": "I think I found a nice geospatial use case for Python's typing.Protocol. Unless I'm mistaken, two projects can contain a common protocol, and have isinstance() interoperability without depending on each other in the import sense.",
"sig": "794f66cf6c25b902e2d6e6360a3f46af34c1fee081b5425ddceda1e3f6fbccccdfafa39c7499a13b198f8e4f9c565ab7775835bf81149a4cd9a53ea9b44d7e72"
}