pyrefly
pyrefly copied to clipboard
@runtime_checkable + isinstance/issubclass for protocols
I think this is something along the lines of, protocols with runtime_checkable are allowed in isinstance/issubclass calls, but otherwise they should not be.
Check the spec