Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 7, 2023
1 parent 4d0ba9d commit f1ede33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btclib/ec/curve_group.py
Expand Up @@ -472,7 +472,7 @@ def multiples(Q: JacPoint, size: int, ec: CurveGroup) -> list[JacPoint]:
MAX_W = 5


@functools.lru_cache() # results are cached to increase efficiency
@functools.lru_cache # results are cached to increase efficiency
def cached_multiples(Q: JacPoint, ec: CurveGroup) -> list[JacPoint]:
T = [INFJ, Q]
for i in range(3, 2**MAX_W, 2):
Expand All @@ -481,7 +481,7 @@ def cached_multiples(Q: JacPoint, ec: CurveGroup) -> list[JacPoint]:
return T


@functools.lru_cache() # results are cached to increase efficiency
@functools.lru_cache # results are cached to increase efficiency
def cached_multiples_fixwind(
Q: JacPoint, ec: CurveGroup, w: int = 4
) -> list[list[JacPoint]]:
Expand Down

0 comments on commit f1ede33

Please sign in to comment.