diff --git a/src/pidgey/__init__.py b/src/pidgey/__init__.py index 9753254..fd43871 100644 --- a/src/pidgey/__init__.py +++ b/src/pidgey/__init__.py @@ -9,7 +9,7 @@ def get_backend_from(obj): if isinstance(obj, _Sequence) and len(obj) > 0: obj = obj[0] - module = _inspect.getmodule(obj) + module = _inspect.getmodule(obj) or _inspect.getmodule(type(obj)) if module is None: return None