Skip to content

Commit 58facb6

Browse files
committed
Review docstrings
1 parent 341ec96 commit 58facb6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+54
-58
lines changed

bip_utils/addr/P2TR_addr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def TweakPublicKey(pub_key: IPublicKey) -> bytes:
138138

139139
class P2TRAddrDecoder(IAddrDecoder):
140140
"""
141-
P2WPKH address decoder class.
142-
It allows the Pay-to-Witness-Public-Key-Hash address decoding.
141+
P2TR address decoder class.
142+
It allows the Pay-to-Taproot address decoding.
143143
"""
144144

145145
@staticmethod

bip_utils/addr/eos_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def EncodeKey(pub_key: Union[bytes, IPublicKey],
123123
Returns:
124124
str: Address string
125125
126-
Raised:
126+
Raises:
127127
ValueError: If the public key is not valid
128128
TypeError: If the public key is not secp256k1
129129
"""

bip_utils/addr/ergo_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def EncodeKey(pub_key: Union[bytes, IPublicKey],
165165
Returns:
166166
str: Address string
167167
168-
Raised:
168+
Raises:
169169
ValueError: If the public key is not valid
170170
TypeError: If the public key is not secp256k1 or the network tag is not a ErgoNetworkTypes enum
171171
"""

bip_utils/addr/eth_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def EncodeKey(pub_key: Union[bytes, IPublicKey],
128128
Returns:
129129
str: Address string
130130
131-
Raised:
131+
Raises:
132132
ValueError: If the public key is not valid
133133
TypeError: If the public key is not secp256k1
134134
"""

bip_utils/addr/fil_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def EncodeKey(pub_key: Union[bytes, IPublicKey],
181181
Returns:
182182
str: Address string
183183
184-
Raised:
184+
Raises:
185185
ValueError: If the public key is not valid
186186
TypeError: If the public key is not secp256k1 or the address type is not valid
187187
"""

bip_utils/addr/iaddr_decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
# THE SOFTWARE.
2020

21-
"""Module with interface for address encoding classes."""
21+
"""Module with interface for address decoding classes."""
2222

2323
# Imports
2424
from abc import ABC, abstractmethod

bip_utils/addr/iaddr_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def EncodeKey(pub_key: Union[bytes, IPublicKey],
4444
Returns:
4545
str: Address string
4646
47-
Raised:
47+
Raises:
4848
ValueError: If the public key is not valid
4949
TypeError: If the public key is not of the correct type (it depends on the address type)
5050
"""

bip_utils/addr/icx_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def EncodeKey(pub_key: Union[bytes, IPublicKey],
9696
Returns:
9797
str: Address string
9898
99-
Raised:
99+
Raises:
100100
ValueError: If the public key is not valid
101101
TypeError: If the public key is not secp256k1
102102
"""

bip_utils/addr/inj_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class InjAddrDecoder(IAddrDecoder):
4949
def DecodeAddr(addr: str,
5050
**kwargs: Any) -> bytes:
5151
"""
52-
Decode an Algorand address to bytes.
52+
Decode an Injective address to bytes.
5353
5454
Args:
5555
addr (str): Address string

bip_utils/addr/one_addr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class OneAddrDecoder(IAddrDecoder):
4444
def DecodeAddr(addr: str,
4545
**kwargs: Any) -> bytes:
4646
"""
47-
Decode a OKEx Chain address to bytes.
47+
Decode a Harmony One address to bytes.
4848
4949
Args:
5050
addr (str): Address string

0 commit comments

Comments
 (0)