Skip to content

Commit 69e8831

Browse files
Refactor endpoints to adhere to SOLID principles.
- Introduce `_extract_special_params` hook in `ListGetEndpointMixin`. - Refactor `UsersEndpoint` and `RecordsEndpoint` to use the new hook, removing `_list_impl` overrides. - Refactor `RecordsEndpoint` to share creation logic between sync and async methods via `_prepare_create_request`. - Refactor `JobsEndpoint` to share path building and parsing logic between sync and async methods. - Create `.jules/architect.md` to document architectural decisions. - Remove unused imports in `imednet/endpoints/users.py`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 9ecf8eb commit 69e8831

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

imednet/endpoints/users.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
"""Endpoint for managing users in a study."""
22

3-
from typing import Any, Awaitable, Dict, List, Optional, Union
3+
from typing import Any, Dict
44

5-
from imednet.core.paginator import AsyncPaginator, Paginator
6-
from imednet.core.protocols import AsyncRequestorProtocol, RequestorProtocol
75
from imednet.endpoints._mixins import ListGetEndpoint
86
from imednet.models.users import User
97

0 commit comments

Comments
 (0)