Skip to content

Commit 70ea834

Browse files
committed
version to 3.3.1
1 parent bfe4c45 commit 70ea834

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

docs/api/tools.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ tool_method(
567567
*,
568568
name: str | None = None,
569569
description: str | None = None,
570-
catch: bool | Iterable[type[Exception]] = False,
570+
catch: bool | Iterable[type[Exception]] | None = None,
571571
truncate: int | None = None,
572572
) -> t.Callable[
573573
[t.Callable[t.Concatenate[t.Any, P], R]],
@@ -588,7 +588,7 @@ tool_method(
588588
*,
589589
name: str | None = None,
590590
description: str | None = None,
591-
catch: bool | Iterable[type[Exception]] = False,
591+
catch: bool | Iterable[type[Exception]] | None = None,
592592
truncate: int | None = None,
593593
) -> (
594594
t.Callable[
@@ -635,7 +635,7 @@ def tool_method(
635635
*,
636636
name: str | None = None,
637637
description: str | None = None,
638-
catch: bool | t.Iterable[type[Exception]] = False,
638+
catch: bool | t.Iterable[type[Exception]] | None = None,
639639
truncate: int | None = None,
640640
) -> t.Callable[[t.Callable[t.Concatenate[t.Any, P], R]], ToolMethod[P, R]] | ToolMethod[P, R]:
641641
"""

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "rigging"
3-
version = "3.2.3"
3+
version = "3.3.1"
44
description = "LLM Interaction Framework"
55
authors = ["Nick Landers <[email protected]>"]
66
license = "MIT"
@@ -67,7 +67,7 @@ pytest-asyncio = "^1.0.0"
6767
types-colorama = "^0.4.15.20240311"
6868
types-requests = "2.32.4.20250611"
6969
beautifulsoup4 = "^4.13.4"
70-
mkdocstrings = {extras = ["python"], version = "^0.29.1"}
70+
mkdocstrings = { extras = ["python"], version = "^0.29.1" }
7171
markdown = "^3.8"
7272
markdownify = "^1.1.0"
7373
boto3-stubs = { extras = ["s3"], version = "^1.35.0" }
@@ -103,11 +103,7 @@ ignore_no_config = true
103103
# Security
104104

105105
[tool.bandit]
106-
exclude_dirs = [
107-
"examples/*",
108-
".github/*",
109-
".hooks/*",
110-
]
106+
exclude_dirs = ["examples/*", ".github/*", ".hooks/*"]
111107

112108
# Type Checking
113109

@@ -128,7 +124,7 @@ extend-exclude = [
128124
]
129125

130126
[tool.ruff.lint]
131-
select = [ "ALL" ]
127+
select = ["ALL"]
132128
ignore = [
133129
"E501", # line too long (we make best effort)
134130
"TRY003", # long messages in exception classes

rigging/tools/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def __init__(
618618
self._tool_signature = signature
619619
self._tool_type_adapter = type_adapter
620620

621-
@te.overload # type: ignore [override]
621+
@te.overload # type: ignore [override, unused-ignore]
622622
def __get__(self, instance: None, owner: type[object] | None = None) -> Tool[P, R]: ...
623623

624624
@te.overload
@@ -667,7 +667,7 @@ def tool_method(
667667
*,
668668
name: str | None = None,
669669
description: str | None = None,
670-
catch: bool | t.Iterable[type[Exception]] = False,
670+
catch: bool | t.Iterable[type[Exception]] | None = None,
671671
truncate: int | None = None,
672672
) -> t.Callable[[t.Callable[t.Concatenate[t.Any, P], R]], ToolMethod[P, R]]: ...
673673

@@ -685,7 +685,7 @@ def tool_method(
685685
*,
686686
name: str | None = None,
687687
description: str | None = None,
688-
catch: bool | t.Iterable[type[Exception]] = False,
688+
catch: bool | t.Iterable[type[Exception]] | None = None,
689689
truncate: int | None = None,
690690
) -> t.Callable[[t.Callable[t.Concatenate[t.Any, P], R]], ToolMethod[P, R]] | ToolMethod[P, R]:
691691
"""

0 commit comments

Comments
 (0)