Skip to content

Commit

Permalink
Merge pull request #16 from uJhin/1.2.2
Browse files Browse the repository at this point in the history
[Fix] Websocket package version issues
  • Loading branch information
uJhin authored Dec 1, 2021
2 parents be1ba1f + c13ea9a commit e8a4021
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ typing-extensions==3.7.4.3
urllib3==1.26.4
webcolors==1.11.1
webencodings==0.5.1
websockets==8.1
websockets==10.1
wrapt==1.12.1
4 changes: 2 additions & 2 deletions client/python/upbit/pkginfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Please read the official Upbit Client document.
Documents: https://ujhin.github.io/upbit-client-docs/
- Upbit OPEN API Version: 1.2.0
- Upbit OPEN API Version: 1.2.2
- Author: ujhin
- Email: ujhin942@gmail.com
- GitHub: https://github.com/uJhin
Expand All @@ -29,7 +29,7 @@ def _get_versions(package_name):
PACKAGE_NAME = 'upbit-client'

OPEN_API_VERSION = '1.2.2'
CURRENT_VERSION = OPEN_API_VERSION+'.0'
CURRENT_VERSION = OPEN_API_VERSION+'.1'

RELEASED_VERSION = _get_versions(PACKAGE_NAME)
LATEST_VERSION = RELEASED_VERSION[0]
Expand Down
6 changes: 3 additions & 3 deletions client/python/upbit/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ def generate_payload(

return json.dumps(payload)

async def __aenter__(self) -> websockets.client.WebSocketClientProtocol:
async def __aenter__(self):
return await self.Connection.__aenter__()

async def __aexit__(self, exc_type, exc_value, traceback) -> None:
async def __aexit__(self, exc_type, exc_value, traceback):
await self.Connection.__aexit__(exc_type, exc_value, traceback)

def __str__(self):
return self.__repr__()

Expand Down

0 comments on commit e8a4021

Please sign in to comment.