Skip to content

Commit

Permalink
Avoid variable type annotation
Browse files Browse the repository at this point in the history
This syntax is not supported on python 3.5 so this old syntax needs to be used until support is dropped for 3.5
  • Loading branch information
keis committed Jun 19, 2020
1 parent 204b7da commit 01b281c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base58/__main__.py
Expand Up @@ -4,12 +4,12 @@

from base58 import b58decode, b58decode_check, b58encode, b58encode_check

_fmap: Dict[Tuple[bool, bool], Callable[[bytes], bytes]] = {
_fmap = {
(False, False): b58encode,
(False, True): b58encode_check,
(True, False): b58decode,
(True, True): b58decode_check
}
} # type: Dict[Tuple[bool, bool], Callable[[bytes], bytes]]


def main() -> None:
Expand Down

0 comments on commit 01b281c

Please sign in to comment.