mirror of https://github.com/peter4431/rq.git
Fixes #613
This has been discussed in #514, #282 and #88. Using an explicit type check via `isinstance`, rather than duck typing, is typically considered unpythonic and breaks compatibility with mock objects such as FakeRedis. This patches removes the type check, and instead looks for a common method that should be present on the object as a hint on whether it's compatible or not.main
parent
8bbd833855
commit
d80f9f8ba0
Loading…
Reference in New Issue