1
0
forked from VimPlug/jedi

Start fixing some of the problems with new typeshed

This commit is contained in:
Dave Halter
2026-04-28 01:41:40 +02:00
parent 2455414d1d
commit ff581e8403
6 changed files with 17 additions and 45 deletions
+3 -2
View File
@@ -14,8 +14,9 @@ def builtin_from_name(inference_state, string):
else:
filter_ = next(typing_builtins_module.get_filters())
name, = filter_.get(string)
value, = name.infer()
return value
# Most of the time there is only symbol, but sometimes there are different
# sys.version_infos, where there are multiple ones, just use the first one.
return next(iter(name.infer()))
class ExactValue(LazyValueWrapper):