Skip to content

Commit

Permalink
fix: type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Nov 11, 2024
1 parent 93e8ca3 commit 416571f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion promplate_recipes/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from promplate.prompt.utils import get_builtins


@partial(partial, default_box=True)
class SilentBox(Box):
def __str__(self):
return super().__str__() if len(self) else ""
Expand All @@ -20,6 +19,9 @@ def __call__(self, *args, **kwargs):
return ""


SilentBox = partial(SilentBox, default_box=True) # type: ignore


class BuiltinsLayer(dict):
def __getitem__(self, key):
return get_builtins()[key]
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ fmt = { composite = ["ruff check --fix --exit-zero", "isort .", "black ."] }
[tool.black]
line-length = 120

[tool.pyright]
typeCheckingMode = "standard"

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

0 comments on commit 416571f

Please sign in to comment.