mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
improve typing of lib/galaxy/managers/collections_util.py.
This commit is contained in:
@@ -111,7 +111,7 @@ def dictify_dataset_collection_instance(dataset_collection_instance, parent, sec
|
||||
encoded_history_id = security.encode_id(parent.id)
|
||||
dict_value['url'] = web.url_for('history_content_typed', history_id=encoded_history_id, id=encoded_id, type="dataset_collection")
|
||||
elif isinstance(parent, model.LibraryFolder):
|
||||
encoded_library_id = security.encode_id(parent.library.id)
|
||||
encoded_library_id = security.encode_id(parent.library.id) # type: ignore
|
||||
encoded_folder_id = security.encode_id(parent.id)
|
||||
# TODO: Work in progress - this end-point is not right yet...
|
||||
dict_value['url'] = web.url_for('library_content', library_id=encoded_library_id, id=encoded_id, folder_id=encoded_folder_id)
|
||||
@@ -163,10 +163,9 @@ def dictify_element_reference(element, rank_fuzzy_counts=None, recursive=True, s
|
||||
object_details["hda_ldda"] = 'hda'
|
||||
object_details["history_id"] = element_object.history_id
|
||||
|
||||
dictified["object"] = object_details
|
||||
else:
|
||||
object_details = None
|
||||
|
||||
dictified["object"] = object_details
|
||||
dictified["object"] = None
|
||||
return dictified
|
||||
|
||||
|
||||
|
||||
@@ -397,8 +397,6 @@ check_untyped_defs = False
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.managers.taggable]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.managers.collections_util]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.jobs.splitters.multi]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.datatypes.display_applications.application]
|
||||
|
||||
Reference in New Issue
Block a user