fix: type hint for image view

closes https://github.com/frappe/frappe/issues/19426
This commit is contained in:
Ankush Menat 2023-01-02 11:50:25 +05:30
parent 0e9d16820b
commit 4d048cd651

View file

@ -13,7 +13,7 @@ def unzip_file(name: str):
@frappe.whitelist()
def get_attached_images(doctype: str, names: list[str]) -> frappe._dict:
def get_attached_images(doctype: str, names: list[str] | str) -> frappe._dict:
"""get list of image urls attached in form
returns {name: ['image.jpg', 'image.png']}"""