pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

@runtime_checkable + isinstance/issubclass for protocols

Open yangdanny97 opened this issue 11 months ago • 0 comments

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

yangdanny97 avatar Mar 27 '25 23:03 yangdanny97