Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2643 from bandprotocol/add-optional-field
Browse files Browse the repository at this point in the history
pyband: update reports and result type can be null
  • Loading branch information
taobun authored Sep 15, 2020
2 parents 290fd75 + fa8d401 commit 644927b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@

### Helpers

- (bugs) [\#2643](https://github.com/bandprotocol/bandchain/pull/2643) update reports and result type can be null

### MISC
4 changes: 2 additions & 2 deletions helpers/pyband/pyband/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class Result(object):
@dataclass
class RequestInfo(object):
request: Request
reports: List[Report]
result: Result
reports: Optional[List[Report]]
result: Optional[Result]


@dataclass
Expand Down
2 changes: 2 additions & 0 deletions helpers/pyband/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ chardet==3.0.4
click==7.1.2
coincurve==13.0.0
colorama==0.4.3
coverage==5.2.1
dacite==1.5.1
docutils==0.16
ecdsa==0.15
Expand All @@ -30,6 +31,7 @@ pycparser==2.20
Pygments==2.6.1
pyparsing==2.4.7
pytest==6.0.1
pytest-cov==2.10.1
readme-renderer==26.0
regex==2020.7.14
requests==2.24.0
Expand Down
4 changes: 2 additions & 2 deletions helpers/pyband/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
setup(
name="pyband",
packages=["pyband"],
version="0.0.4",
version="0.0.6",
license="MIT",
description="Python library for BandChain",
author="Band Protocol",
author_email="[email protected]",
url="https://github.com/bandprotocol/bandchain",
keywords=["BAND", "BLOCKCHAIN", "ORACLE"],
install_requires=["requests", "dacite"],
install_requires=["requests", "dacite", "bech32", "bip32", "ecdsa", "mnemonic"],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 644927b

Please sign in to comment.