Skip to content

Commit

Permalink
Refactor variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzi committed Mar 9, 2024
1 parent 77d28a5 commit c91b1e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/python/cellxgene_census/src/cellxgene_census/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ def _uri_join(base: str, url: str) -> str:

def _extract_census_version(census: soma.Collection) -> str:
"""Extract the Census version from the given Census object."""
return urllib.parse.urlparse(census.uri).path.split("/")[2]
version: str = urllib.parse.urlparse(census.uri).path.split("/")[2]
return version
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_embedding_metadata_by_name(
response = requests.get(CELL_CENSUS_EMBEDDINGS_MANIFEST_URL)
response.raise_for_status()

manifest = response.json()
manifest = cast(dict[str, dict[str, Any]], response.json())
embeddings = []
for _, obj in manifest.items():
if (
Expand Down

0 comments on commit c91b1e8

Please sign in to comment.