Skip to content

Commit

Permalink
Make sure py__name__ and name are defined on all values
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Dec 26, 2019
1 parent 82ed289 commit dd89325
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jedi/inference/base_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ def is_stub(self):
def _as_context(self):
raise NotImplementedError('Not all values need to be converted to contexts: %s', self)

def name(self):
raise NotImplementedError

def py__name__(self):
return self.name.string_name


def iterate_values(values, contextualized_node=None, is_async=False):
"""
Expand Down

0 comments on commit dd89325

Please sign in to comment.