Skip to content

Commit 5b52ed4

Browse files
committed
removed unused parameter
1 parent a5efe1d commit 5b52ed4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "codex32"
7-
version = "0.2.0"
7+
version = "0.3.0"
88
authors = [
99
{ name = "Ben Westgate", email = "[email protected]" },
1010
]

src/codex32/codex32.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,12 @@ def data(self):
367367
def from_unchecksummed_string(cls, s, hrp="ms"):
368368
"""Create Codex32String from unchecksummed string."""
369369
_, data = bech32_decode(s, hrp=hrp)
370-
ret = cls(bech32_encode(data + ms32_create_checksum(data), hrp))
371-
return ret
370+
return cls(bech32_encode(data + ms32_create_checksum(data), hrp))
372371

373372
@classmethod
374-
def from_string(cls, s, hrp="ms"):
373+
def from_string(cls, s):
375374
"""Create Codex32String from a codex32 string."""
376-
ret = cls(s)
377-
return ret
375+
return cls(s)
378376

379377
@classmethod
380378
def interpolate_at(cls, shares, target="s"):

0 commit comments

Comments
 (0)