From 786f2a54d4b107e664b613bde9c450292dc50992 Mon Sep 17 00:00:00 2001 From: ilikecubesnstuff <25328250+ilikecubesnstuff@users.noreply.github.com> Date: Sun, 14 Jan 2024 08:20:40 +0000 Subject: [PATCH] :bug: Fix test for agama detection. --- src/pidgey/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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