Skip to content

Commit 87f8350

Browse files
author
Andrei Bratu
committed
mypy unpack ignore statements
1 parent cdd501d commit 87f8350

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.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/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)