From 674e0114a5023cc59bf340ba02c7a98d49eb1ecc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 14 Jun 2020 14:14:47 +0200 Subject: [PATCH] Ignore runtime_checkable, because we don't really need it --- jedi/plugins/stdlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jedi/plugins/stdlib.py b/jedi/plugins/stdlib.py index be6a2eae..19d86dd3 100644 --- a/jedi/plugins/stdlib.py +++ b/jedi/plugins/stdlib.py @@ -784,6 +784,9 @@ _implemented = { # Therefore, just make it return nothing, which leads to the stubs # being used instead. This only matters for 3.7+. '_alias': lambda value, arguments, callback: NO_VALUES, + # runtime_checkable doesn't really change anything and is just + # adding logs for infering stuff, so we can safely ignore it. + 'runtime_checkable': lambda value, arguments, callback: NO_VALUES, }, 'dataclasses': { # For now this works at least better than Jedi trying to understand it.