From bdab3d881b46b8fceb5d24581fb1630a4809f518 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Mon, 12 Feb 2024 11:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20type=20checks=20selecto?= =?UTF-8?q?r.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/funcchain/parser/selector.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/funcchain/parser/selector.py b/src/funcchain/parser/selector.py index 4ee56e0..924b1e2 100644 --- a/src/funcchain/parser/selector.py +++ b/src/funcchain/parser/selector.py @@ -31,10 +31,11 @@ def parser_for( (output_type is bool) or (output_type is int) or (output_type is float) - or ((t := get_origin(output_type)) is list) + or (output_type is dict) + or (output_type is list) + or (output_type is tuple) + or ((t := get_origin(output_type)) is dict) or (t is list) - or (t is dict) - or (t is set) or (t is tuple) or (t is Literal) or (t is Enum)