Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
no-issue fix rtype and import order.
Browse files Browse the repository at this point in the history
  • Loading branch information
nils.diefenbach committed Feb 15, 2019
1 parent 39e35bf commit 9497015
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bitex/request.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import urllib3
from typing import Union

from requests import Request, PreparedRequest
from urllib3.exceptions import LocationParseError

from requests import Request, PreparedRequest
from requests.packages.urllib3.util import parse_url

from bitex.plugins import PLUGINS, HOOKS
from bitex.plugins import PLUGINS
from bitex.constants import BITEX_SHORTHAND_NO_ACTION_REGEX, BITEX_SHORTHAND_WITH_ACTION_REGEX


Expand Down Expand Up @@ -40,7 +41,7 @@ def __init__(self, private=False, **kwargs):
def __repr__(self):
return f'<BitexRequest [{self.method}]>'

def parse_target_exchange(self)-> str:
def parse_target_exchange(self)-> Union[str, None]:
"""Check the URL for its scheme and extract an exchange name, if any.
If the url starts with http/https we set :attr:`BitexRequest.exchange`
Expand Down

0 comments on commit 9497015

Please sign in to comment.