mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-10 05:52:22 +08:00
The generics of a class of anonymous instances should never be inferred
This commit is contained in:
@@ -304,6 +304,9 @@ class AnonymousInstance(TreeInstance):
|
||||
var_args=AnonymousInstanceArguments(self),
|
||||
)
|
||||
|
||||
def get_annotated_class_object(self):
|
||||
return self.class_context # This is the default.
|
||||
|
||||
|
||||
class CompiledInstanceName(compiled.CompiledName):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user