From aaaee460e8040e1350ff33b1d81ad1cadb30bc8a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Nov 2026 14:03:39 +0000 Subject: [PATCH] add Any to is_compatible_args --- src/blueapi/core/context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blueapi/core/context.py b/src/blueapi/core/context.py index e4ec6331c..426cb47da 100644 --- a/src/blueapi/core/context.py +++ b/src/blueapi/core/context.py @@ -81,7 +81,8 @@ def generic_bounds(val: Device, target: type) -> tuple[type, ...]: def is_compatible_args(val: Device, target: type, args: tuple[type, ...] | None): return (not args) or all( - actual is Any + expected is Any + or actual is Any or type(actual) is TypeVar or type(expected) is TypeVar or expected == actual