Skip to content

Commit

Permalink
Chore: Make release 1.0.52
Browse files Browse the repository at this point in the history
  • Loading branch information
martinroberson committed Jan 4, 2024
1 parent 9ba7139 commit cb2d3e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions gs_quant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@
nest_asyncio.apply()
except ImportError:
pass

# Setup tracing for Jupyter
try:
from gs_quant.tracing import tracing # pylint: disable=unused-import
except ImportError:
pass
4 changes: 2 additions & 2 deletions gs_quant/api/gs/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
under the License.
"""

from typing import List
from typing import List, Any, Dict

from pydash import get

Expand Down Expand Up @@ -47,7 +47,7 @@ def get_my_guid(cls) -> str:
return f"guid:{GsSession.current._get('/users/self')['id']}"

@classmethod
def get_current_user_info(cls) -> List[str]:
def get_current_user_info(cls) -> Dict[str, Any]:
"""
Gets user
:return: user
Expand Down
2 changes: 1 addition & 1 deletion gs_quant/api/risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def drain_queue_async(cls, q: asyncio.Queue, timeout: Optional[int] = None
try:
elem = await asyncio.wait_for(q.get(), timeout=timeout) if timeout else await q.get()
return cls.__handle_queue_update(q, elem)
except TimeoutError:
except (TimeoutError, asyncio.TimeoutError):
return False, []

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=[
"asteval<0.9.24",
"asteval",
"aenum",
"backoff",
"cachetools",
Expand Down

0 comments on commit cb2d3e5

Please sign in to comment.