Skip to content

Commit

Permalink
fix: remove slice from __getitem__ in algopy.arc4.DynamicArray
Browse files Browse the repository at this point in the history
…and `algopy.arc4.StaticArray`
  • Loading branch information
daniel-makerx authored and achidlow committed Aug 23, 2024
1 parent c6dac31 commit c0049f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stubs/algopy-stubs/arc4.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class StaticArray(
def length(self) -> algopy.UInt64:
"""Returns the current length of the array"""

def __getitem__(self, index: algopy.UInt64 | int | slice) -> _TArrayItem: ...
def __getitem__(self, index: algopy.UInt64 | int) -> _TArrayItem: ...
def __setitem__(self, index: algopy.UInt64 | int, value: _TArrayItem) -> _TArrayItem: ...
def copy(self) -> typing.Self:
"""Create a copy of this array"""
Expand All @@ -374,7 +374,7 @@ class DynamicArray(_ABIEncoded, typing.Generic[_TArrayItem], Reversible[_TArrayI
def length(self) -> algopy.UInt64:
"""Returns the current length of the array"""

def __getitem__(self, index: algopy.UInt64 | int | slice) -> _TArrayItem: ...
def __getitem__(self, index: algopy.UInt64 | int) -> _TArrayItem: ...
def append(self, item: _TArrayItem, /) -> None:
"""Append an item to this array"""

Expand Down
2 changes: 1 addition & 1 deletion stubs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "algorand-python"
# this version represents the version of the stub API's and should follow semver semantics
# when updating this value also update src/compile.py:MAX_SUPPORTED_ALGOPY_VERSION_EX if it is a major/minor change
# also see stubs/README.md#versioning
version = "2.0.0"
version = "2.0.1"
description = "API for writing Algorand Python Smart contracts"
authors = ["Algorand Foundation <contact@algorand.foundation>"]
readme = "README.md"
Expand Down

0 comments on commit c0049f1

Please sign in to comment.