Download apps/core/protocols/case_material_protocols.py from jun2024/fachuan: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/jun2024/fachuan/resolve/main/apps/core/protocols/case_material_protocols.py
- Command line
-
hf download hf://spaces/jun2024/fachuan/apps/core/protocols/case_material_protocols.py
-
curl -L -o case_material_protocols.py https://huggingface.co/spaces/jun2024/fachuan/resolve/main/apps/core/protocols/case_material_protocols.py
1.01 kB
| """Module for case material protocols.""" | |
| from typing import Any, Protocol | |
| class ICaseMaterialService(Protocol): | |
| def list_bind_candidates( | |
| self, | |
| *, | |
| case_id: int, | |
| user: Any, | |
| org_access: Any, | |
| perm_open_access: bool, | |
| ) -> list[Any]: ... | |
| def bind_materials( | |
| self, | |
| *, | |
| case_id: int, | |
| items: list[dict[str, Any]], | |
| user: Any, | |
| org_access: Any, | |
| perm_open_access: bool, | |
| ) -> list[Any]: ... | |
| def save_group_order( | |
| self, | |
| *, | |
| case_id: int, | |
| category: str, | |
| ordered_type_ids: list[int], | |
| side: str | None, | |
| supervising_authority_id: int | None, | |
| user: Any, | |
| org_access: Any, | |
| perm_open_access: bool, | |
| ) -> None: ... | |
| def get_case_materials_view( | |
| self, | |
| *, | |
| case_id: int, | |
| user: Any | None = None, | |
| org_access: Any | None = None, | |
| perm_open_access: bool = False, | |
| ) -> Any: ... | |