Comment Comment by spooky_action 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 parent spooky_action 1 year ago
It doesn't actually preserve typing on the protocol's methods though