Use Optional type for _attach_provider..

Co-authored-by: Bogdan Opanchuk <bogdan@opanchuk.net>
Co-authored-by: K Prasch <kieran@nucypher.com>
pull/2287/head
derekpierre 2020-09-25 19:40:25 -04:00
parent 3e8834e174
commit 9f253b585b
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ along with nucypher. If not, see <https://www.gnu.org/licenses/>.
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