From d31ca7e9f0978eb1fb26bebe7bf72a0cb992c1ff Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 25 Aug 2019 17:00:57 +0200 Subject: [PATCH] Add a comment about how _ArrayInstance is used --- jedi/inference/value/iterable.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jedi/inference/value/iterable.py b/jedi/inference/value/iterable.py index b306ead7..57d8030e 100644 --- a/jedi/inference/value/iterable.py +++ b/jedi/inference/value/iterable.py @@ -736,6 +736,10 @@ class _ArrayInstance(HelperValueMixin): Used for the usage of set() and list(). This is definitely a hack, but a good one :-) It makes it possible to use set/list conversions. + + This is not a proper context, because it doesn't have to be. It's not used + in the wild, it's just used within typeshed as an argument to `__init__` + for set/list and never used in any other place. """ def __init__(self, instance, var_args): self.instance = instance