Skip to content

Commit

Permalink
Add missing cast to satisfy typing
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Sep 24, 2024
1 parent 413d2bc commit 90071d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toil/lib/integration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import os
import sys
from typing import Dict, List, Optional
from typing import Dict, List, Optional, cast

from urllib.parse import urlparse, unquote, quote
import requests
Expand Down Expand Up @@ -113,7 +113,7 @@ def get_workflow_root_from_dockstore(workflow: str) -> str:
logger.debug("Workflow descriptor URL: %s", trs_descriptor_url)
trs_descriptor_document = requests.get(trs_descriptor_url).json()

return trs_descriptor_document["url"]
return cast(str, trs_descriptor_document["url"])

def resolve_workflow(workflow: str) -> str:
"""
Expand Down

0 comments on commit 90071d7

Please sign in to comment.