Skip to content

Commit

Permalink
Disable mypy in tox for now
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHC committed Dec 27, 2023
1 parent 4d7f369 commit 474b952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llm_strategy/testing/fake_chat_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def from_messages(messages_bag: Collection[list[BaseMessage]]) -> "FakeChatModel
messages_tuples_bag = {tuple(dict_to_tuple(m) for m in messages_to_dict(messages)) for messages in messages_bag}
return FakeChatModel(messages_tuples_bag=messages_tuples_bag)

async def _agenerate(self, messages: list[BaseMessage], stop: list[str] | None = None) -> ChatResult:
async def _agenerate(self, messages: list[BaseMessage], stop: list[str] | None = None, **kwargs) -> ChatResult:
raise NotImplementedError

def _generate(self, messages: List[BaseMessage], stop: Optional[List[str]] = None) -> ChatResult:
def _generate(self, messages: List[BaseMessage], stop: Optional[List[str]] = None, **kwargs) -> ChatResult:
raise NotImplementedError

def __del__(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ allowlist_externals = poetry
commands =
poetry install -v
pytest llm_strategy --cov --cov-config=pyproject.toml --cov-report=xml
mypy
; mypy

0 comments on commit 474b952

Please sign in to comment.