Skip to content

Commit

Permalink
fix: remove type bound on TemplateVar allowing it to be used with a…
Browse files Browse the repository at this point in the history
…ll types.
  • Loading branch information
daniel-makerx committed May 2, 2024
1 parent 616b78a commit 4226e0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stubs/algopy-stubs/_template_variables.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import typing

from algopy import Bytes, BytesBacked, UInt64

_T_co = typing.TypeVar("_T_co", bound=UInt64 | bool | Bytes | BytesBacked, covariant=True)
_T_co = typing.TypeVar("_T_co", covariant=True)

class _TemplateVarMethod(typing.Protocol[_T_co]):
def __call__(self, variable_name: str, /, *, prefix: str = "TMPL_") -> _T_co: ...
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 = "1.1.0"
version = "1.1.1"
description = "API for writing Algorand Python Smart contracts"
authors = ["Algorand Foundation <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 4226e0f

Please sign in to comment.