🌐 AI搜索 & 代理 主页
Skip to content

Commit a207b19

Browse files
fix TypeExtractor.add return value (#50)
Co-authored-by: Dev doomari <devdoomari@gmail.com>
1 parent e9bdde0 commit a207b19

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py_type_extractor/type_extractor/type_extractor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def add(
107107
options: Optional[Set[BaseOption]] = None,
108108
):
109109
def add_decoration(typ):
110-
if not is_builtin(typ):
111-
self.rawtype_to_node(typ, options or set())
112-
return typ
110+
return self.rawtype_to_node(typ, options or set())
111+
113112
return add_decoration

0 commit comments

Comments
 (0)