Skip to content

Commit bee3595

Browse files
committed
initial sphinx docstring conversion
1 parent 170eb38 commit bee3595

16 files changed

Lines changed: 648 additions & 877 deletions

src/runloop_api_client/sdk/_helpers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def detect_content_type(name: str) -> ContentType:
3939
def filter_params(params: Mapping[str, Any], type_filter: Type[T]) -> T:
4040
"""Filter params dict to only include keys defined in the given TypedDict type.
4141
42-
Args:
43-
params: Dictionary or TypedDict of parameters to filter
44-
type_filter: TypedDict class to filter against
45-
46-
Returns:
47-
Filtered dictionary matching the TypedDict structure
42+
:param params: Dictionary or TypedDict of parameters to filter
43+
:type params: Mapping[str, Any]
44+
:param type_filter: TypedDict class to filter against
45+
:type type_filter: Type[T]
46+
:return: Filtered dictionary matching the TypedDict structure
47+
:rtype: T
4848
"""
4949
return {k: v for k, v in params.items() if k in type_filter.__annotations__} # type: ignore[return-value]

0 commit comments

Comments
 (0)