Skip to content

Commit

Permalink
rename Indexable to Subscriptable
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jul 18, 2022
1 parent e353198 commit 53de3d1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

from vyper import ast as vy_ast
from vyper.exceptions import StructureException
from vyper.semantics.types.bases import VyperType, DataLocation, IndexableTypeDefinition
from vyper.semantics.types.bases import VyperType, DataLocation
from vyper.semantics.types.utils import get_type_from_annotation
from vyper.semantics.validation.utils import validate_expected_type


class _IndexableT(VyperType):
class _SubscriptableT(VyperType):
"""
Base class for indexable types such as arrays and mappings.
Base class for subscriptable types such as arrays and mappings.
Attributes
----------
Expand Down Expand Up @@ -39,7 +39,7 @@ def get_index_type(self):
return self.key_type


class HashMapT(IndexableT):
class HashMapT(SubscriptableT):
_id = "HashMap"

def __repr__(self):
Expand Down Expand Up @@ -84,7 +84,7 @@ def from_annotation(
value_type = get_type_from_annotation(node.slice.value.elements[1], DataLocation.STORAGE)


class _SequenceT(_IndexableT):
class _SequenceT(_SubscriptableT):
"""
Private base class for sequence types (i.e., index is an int)
Expand Down

0 comments on commit 53de3d1

Please sign in to comment.