mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 11:02:37 +00:00
multiple: Remove unnecessary Ruff suppression comments (#21050)
## Summary I ran `ruff check --extend-select RUF100 -n` to identify `# noqa` comments that weren't having any effect in Ruff, and then `ruff check --extend-select RUF100 -n --fix` on select files to remove all of the unnecessary `# noqa: F401` violations. It's possible that these were needed at some point in the past, but they're not necessary in Ruff v0.1.15 (used by LangChain) or in the latest release. Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
@@ -25,13 +25,13 @@ def import_comet_llm_api() -> SimpleNamespace:
|
||||
"""Import comet_llm api and raise an error if it is not installed."""
|
||||
try:
|
||||
from comet_llm import (
|
||||
experiment_info, # noqa: F401
|
||||
flush, # noqa: F401
|
||||
experiment_info,
|
||||
flush,
|
||||
)
|
||||
from comet_llm.chains import api as chain_api # noqa: F401
|
||||
from comet_llm.chains import api as chain_api
|
||||
from comet_llm.chains import (
|
||||
chain, # noqa: F401
|
||||
span, # noqa: F401
|
||||
chain,
|
||||
span,
|
||||
)
|
||||
|
||||
except ImportError:
|
||||
|
Reference in New Issue
Block a user