Skip to content

Commit 4961305

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d81bfca commit 4961305

Some content is hidden

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

43 files changed

+93
-65
lines changed

btclib/alias.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
mypy aliases, documenting also coding input conventions.
1313
"""
14+
1415
from __future__ import annotations
1516

1617
from io import BytesIO

btclib/b32.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
# No part of btclib including this file, may be copied, modified, propagated,
99
# or distributed except according to the terms contained in the LICENSE file.
10-
1110
# Copyright (c) 2017 Pieter Wuille
1211
#
1312
# Permission is hereby granted, free of charge, to any person obtaining a copy

btclib/b58.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Base58 encoding of public keys and scripts as addresses, private keys as
1313
WIFs
1414
"""
15+
1516
from __future__ import annotations
1617

1718
from btclib import b32

btclib/base58.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
it supports encoding bytes-like objects to ASCII bytes,
3535
and decoding ASCII bytes-like objects or ASCII strings to bytes.
3636
"""
37+
3738
from __future__ import annotations
3839

3940
from btclib.alias import Octets, String

btclib/bech32.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
# No part of btclib including this file, may be copied, modified, propagated,
99
# or distributed except according to the terms contained in the LICENSE file.
10-
1110
# Copyright (c) 2017 Pieter Wuille
1211
#
1312
# Permission is hereby granted, free of charge, to any person obtaining a copy

btclib/bip32/bip32.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [13:45] chain code
3131
- [45:78] compressed pub_key or [0x00][prv_key]
3232
"""
33+
3334
from __future__ import annotations
3435

3536
import copy

btclib/bip32/der_path.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- sequence of integer indexes (even a single int)
1616
- bytes (multiples of 4-bytes index)
1717
"""
18+
1819
from __future__ import annotations
1920

2021
from typing import Sequence, Union

btclib/bip32/key_origin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# No part of btclib including this file, may be copied, modified, propagated,
99
# or distributed except according to the terms contained in the LICENSE file.
1010
"""BIP32 key origin."""
11+
1112
from __future__ import annotations
1213

1314
from dataclasses import dataclass
@@ -138,7 +139,7 @@ def decode_hd_key_paths(map_: Mapping[Octets, BIP32KeyOrigin] | None) -> HdKeyPa
138139

139140

140141
def encode_to_bip32_derivs(
141-
hd_key_paths: Mapping[bytes, BIP32KeyOrigin]
142+
hd_key_paths: Mapping[bytes, BIP32KeyOrigin],
142143
) -> list[_BIP32Deriv]:
143144
"""Return the json representation of the dataclass element."""
144145
return [
@@ -152,7 +153,7 @@ def encode_to_bip32_derivs(
152153

153154

154155
def _decode_from_bip32_deriv(
155-
bip32_deriv: Mapping[str, str]
156+
bip32_deriv: Mapping[str, str],
156157
) -> tuple[bytes, BIP32KeyOrigin]:
157158
# FIXME remove size checks to allow
158159
# the instantiation of invalid master_fingerprint and pub_key

btclib/bip32/slip132.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
https://github.com/satoshilabs/slips/blob/master/slip-0132.md
1313
"""
14+
1415
from __future__ import annotations
1516

1617
import contextlib

btclib/block/block.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
Dataclass encapsulating BlockHeader and list[Tx].
1313
"""
14+
1415
from __future__ import annotations
1516

1617
from dataclasses import dataclass

0 commit comments

Comments
 (0)