mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
This commit fix issue #2943. In cpython, both first and second argument can be value (not type). As second parameter `cls` is defined as PyTypeRef, `vm.call_special_method` use `subclasscheck` method in `PyTuple`, never could reach to user defined `subclasscheck` method. In general, first argument of `issubclass` must be `<class Type>`, but if second argument define `__subclasscheck__`, rustpython must test it first. Therefore, for first argument enable to have different type, I switch it's type as `PyObjectRef`. Signed-off-by: snowapril <sinjihng@gmail.com>