mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 14:03:26 +00:00
community[patch]: upgrade to recent version of mypy (#21616)
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
This commit is contained in:
@@ -9,7 +9,7 @@ from langchain_community.llms.anyscale import Anyscale
|
||||
|
||||
@pytest.mark.requires("openai")
|
||||
def test_api_key_is_secret_string() -> None:
|
||||
llm = Anyscale(anyscale_api_key="secret-api-key", anyscale_api_base="test")
|
||||
llm = Anyscale(anyscale_api_key="secret-api-key", anyscale_api_base="test") # type: ignore[arg-type]
|
||||
assert isinstance(llm.anyscale_api_key, SecretStr)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ def test_api_key_masked_when_passed_via_constructor(
|
||||
capsys: CaptureFixture,
|
||||
) -> None:
|
||||
"""Test initialization with an API key provided via the initializer"""
|
||||
llm = Anyscale(anyscale_api_key="secret-api-key", anyscale_api_base="test")
|
||||
llm = Anyscale(anyscale_api_key="secret-api-key", anyscale_api_base="test") # type: ignore[arg-type]
|
||||
print(llm.anyscale_api_key, end="") # noqa: T201
|
||||
captured = capsys.readouterr()
|
||||
|
||||
|
Reference in New Issue
Block a user