Checking if `_Dash` is an instance of a `Protocol` results in raised `InvalidMethod`.
kennipj opened this issue · comments
Checking if _Dash
is an instance of a runtime checkable Protocol
raises InvalidMethod
.
Code sample:
from typing import Protocol, runtime_checkable
from pydash import py_
@runtime_checkable
class SomeProtocol(Protocol):
some_field: int
isinstance(py_, SomeProtocol)
# pydash.exceptions.InvalidMethod: Invalid pydash method: some_field
Tested with:
- python
3.8.5
and python3.9.6
- pydash
5.0.1
Fix released in 5.0.2
: https://pypi.org/project/pydash/5.0.2/