mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
fix: Remove trailing whitespace in docstring
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -293,7 +293,7 @@ __version__ = "1.1.0"
|
|||||||
def __getattr__(name: str):
|
def __getattr__(name: str):
|
||||||
"""
|
"""
|
||||||
Catch common typos and provide helpful error messages.
|
Catch common typos and provide helpful error messages.
|
||||||
|
|
||||||
This function is called when an attribute is not found in the module.
|
This function is called when an attribute is not found in the module.
|
||||||
It helps users who make common typos when importing tools.
|
It helps users who make common typos when importing tools.
|
||||||
"""
|
"""
|
||||||
@@ -302,7 +302,7 @@ def __getattr__(name: str):
|
|||||||
f"'{name}' is currently under development and not yet available. "
|
f"'{name}' is currently under development and not yet available. "
|
||||||
f"Please check the CrewAI documentation for updates on when this tool will be released."
|
f"Please check the CrewAI documentation for updates on when this tool will be released."
|
||||||
)
|
)
|
||||||
|
|
||||||
if name.endswith("tool") and not name.endswith("Tool"):
|
if name.endswith("tool") and not name.endswith("Tool"):
|
||||||
correct_name = name[:-4] + "Tool"
|
correct_name = name[:-4] + "Tool"
|
||||||
if correct_name in __all__ or correct_name == "PGSearchTool":
|
if correct_name in __all__ or correct_name == "PGSearchTool":
|
||||||
@@ -311,5 +311,5 @@ def __getattr__(name: str):
|
|||||||
f"Did you mean '{correct_name}'? "
|
f"Did you mean '{correct_name}'? "
|
||||||
f"Note: Tool names use capital 'T' in 'Tool'."
|
f"Note: Tool names use capital 'T' in 'Tool'."
|
||||||
)
|
)
|
||||||
|
|
||||||
raise AttributeError(f"module 'crewai_tools' has no attribute '{name}'")
|
raise AttributeError(f"module 'crewai_tools' has no attribute '{name}'")
|
||||||
|
|||||||
Reference in New Issue
Block a user