Skip to content

Commit cdbe070

Browse files
author
Andrei Bratu
committed
mypy unpack ignore statements
1 parent 2ad919b commit cdbe070

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install dependencies
1818
run: poetry install
1919
- name: Compile
20-
run: poetry run mypy . --enable-incomplete-feature=Unpack
20+
run: poetry run mypy .
2121
test:
2222
runs-on: ubuntu-20.04
2323
steps:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cohere = "^5.11.2"
5454
replicate = "^1.0.3"
5555
jsonschema = "^4.23.0"
5656
types-jsonschema = "^4.23.0.20240813"
57-
mypy = "^1.6.0"
57+
mypy = "^1.0.1"
5858
pytest = "^7.4.0"
5959
pytest-asyncio = "^0.23.5"
6060
python-dateutil = "^2.8.2"

src/humanloop/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def prompt(
173173
self,
174174
*,
175175
path: Optional[str] = None,
176-
**prompt_kernel: Unpack[DecoratorPromptKernelRequestParams],
176+
**prompt_kernel: Unpack[DecoratorPromptKernelRequestParams], # type: ignore
177177
):
178178
"""Decorator for declaring a (Prompt)[https://humanloop.com/docs/explanation/prompts] in code.
179179
@@ -252,7 +252,7 @@ def tool(
252252
self,
253253
*,
254254
path: Optional[str] = None,
255-
**tool_kernel: Unpack[ToolKernelRequestParams],
255+
**tool_kernel: Unpack[ToolKernelRequestParams], # type: ignore
256256
):
257257
"""Decorator for declaring a [Tool](https://humanloop.com/docs/explanation/tools) in code.
258258
@@ -325,7 +325,7 @@ def flow(
325325
self,
326326
*,
327327
path: Optional[str] = None,
328-
**flow_kernel: Unpack[FlowKernelRequestParams],
328+
**flow_kernel: Unpack[FlowKernelRequestParams], # type: ignore
329329
):
330330
"""Decorator for declaring a [Flow](https://humanloop.com/docs/explanation/flows) in code.
331331

src/humanloop/decorators/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def flow(
2121
opentelemetry_tracer: Tracer,
2222
path: Optional[str] = None,
23-
**flow_kernel: Unpack[FlowKernelRequestParams],
23+
**flow_kernel: Unpack[FlowKernelRequestParams], # type: ignore
2424
):
2525
flow_kernel["attributes"] = {k: v for k, v in flow_kernel.get("attributes", {}).items() if v is not None}
2626

src/humanloop/decorators/prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def prompt(
2020
opentelemetry_tracer: Tracer,
2121
path: Optional[str] = None,
2222
# TODO: Template can be a list of objects?
23-
**prompt_kernel: Unpack[DecoratorPromptKernelRequestParams],
23+
**prompt_kernel: Unpack[DecoratorPromptKernelRequestParams], # type: ignore
2424
):
2525
def decorator(func: Callable):
2626
@wraps(func)

src/humanloop/decorators/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def tool(
3131
opentelemetry_tracer: Tracer,
3232
path: Optional[str] = None,
33-
**tool_kernel: Unpack[ToolKernelRequestParams],
33+
**tool_kernel: Unpack[ToolKernelRequestParams], # type: ignore
3434
):
3535
def decorator(func: Callable):
3636
enhanced_tool_kernel = _build_tool_kernel(

0 commit comments

Comments
 (0)