From 9f253b585b47b01637c605fba7dcabc86d3cae01 Mon Sep 17 00:00:00 2001 From: derekpierre Date: Fri, 25 Sep 2020 19:40:25 -0400 Subject: [PATCH] Use Optional type for _attach_provider.. Co-authored-by: Bogdan Opanchuk Co-authored-by: K Prasch --- nucypher/blockchain/eth/interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nucypher/blockchain/eth/interfaces.py b/nucypher/blockchain/eth/interfaces.py index dee0b3309..96b1699df 100644 --- a/nucypher/blockchain/eth/interfaces.py +++ b/nucypher/blockchain/eth/interfaces.py @@ -19,7 +19,7 @@ along with nucypher. If not, see . import os import pprint import time -from typing import Callable, NamedTuple, Tuple, Union +from typing import Callable, NamedTuple, Tuple, Union, Optional from urllib.parse import urlparse import click @@ -372,7 +372,7 @@ class BlockchainInterface: return self._provider def _attach_provider(self, - provider: BaseProvider = None, + provider: Optional[BaseProvider] = None, provider_uri: str = None) -> None: """ https://web3py.readthedocs.io/en/latest/providers.html#providers