mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 17:58:35 +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),
|
var_args=AnonymousInstanceArguments(self),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def get_annotated_class_object(self):
|
||||||
|
return self.class_context # This is the default.
|
||||||
|
|
||||||
|
|
||||||
class CompiledInstanceName(compiled.CompiledName):
|
class CompiledInstanceName(compiled.CompiledName):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user