Skip to content

Commit

Permalink
patch[Partners] Unified fix of incorrect variable declarations in all…
Browse files Browse the repository at this point in the history
… check_imports (langchain-ai#25014)

There are some incorrect declarations of variable `has_failure` in
check_imports. The purpose of this PR is to uniformly fix these errors.
  • Loading branch information
ZhangShenao authored and olgamurraft committed Aug 16, 2024
1 parent 35336f3 commit f6b7cba
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion libs/partners/ai21/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/airbyte/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/anthropic/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/chroma/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/couchbase/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/exa/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/groq/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/mistralai/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/mongodb/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/nomic/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/ollama/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/openai/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/qdrant/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/together/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/voyageai/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()
Expand Down

0 comments on commit f6b7cba

Please sign in to comment.