It's not perfect, but runtime_checkable is a thing https://docs.python.org/3/library/typing.html#typing.runtime...
It doesn't actually preserve typing on the protocol's methods though
It doesn't actually preserve typing on the protocol's methods though
No comments yet.