higlass / higlass/higlass-python

`Tileset.tiles` return annotation is incorrect

Offen
#225 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @manzt Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
66
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The `tiles` method is annotated as returning a list of dicts:

* https://github.com/higlass/higlass-python/blob/main/src/higlass/tilesets.py#L171
* https://github.com/higlass/higlass-python/blob/main/src/higlass/tilesets.py#L223

but the handler that consumes it actually unpacks (tile_id, tile) pairs:

* https://github.com/higlass/higlass-python/blob/main/src/higlass/_widget.py#L83

Returning `list[dict]` makes the dict comprehension raise an error that gets swallowed (see companion issue) so no response is sent and the UI reports "Tileset info not found".

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.