4 ms·
It's not perfect, but runtime_checkable is a thing https://docs.python.org/3/library/typing.html#typing.runtime_checkable https://docs.python.org/3/library/typi
by spooky_action 1y ago
It's not perfect, but runtime_checkable is a thing https://docs.python.org/3/library/typing.html#typing.runtime_checkable https://docs.python.org/3/library/typing.html#typing.runtime...
It doesn't actually preserve typing on the protocol's methods though