Skip to content

Commit

Permalink
resolve mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Aug 7, 2024
1 parent 5eb26ef commit e201d43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ warn_unused_configs = true
warn_unused_ignores = true
warn_return_any = true
show_error_codes = true
disallow_any_unimported = true

[[tool.mypy.overrides]]
ignore_missing_imports = true
Expand All @@ -104,5 +103,5 @@ module = [
"sentence_transformers.*",
"moviepy.*",
"e2b_code_interpreter.*",
"e2b.*",
"e2b.*"
]
4 changes: 2 additions & 2 deletions vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def formats(self) -> Iterable[str]:
return formats

@staticmethod
def from_e2b_result(result: E2BResult) -> "Result": # type: ignore
def from_e2b_result(result: E2BResult) -> "Result":
"""
Creates a Result object from an E2BResult object.
"""
Expand Down Expand Up @@ -361,7 +361,7 @@ def from_exception(exec: Exception, traceback_raw: List[str]) -> "Execution":
)

@staticmethod
def from_e2b_execution(exec: E2BExecution) -> "Execution": # type: ignore
def from_e2b_execution(exec: E2BExecution) -> "Execution":
"""Creates an Execution object from an E2BResult object."""
return Execution(
results=[Result.from_e2b_result(res) for res in exec.results],
Expand Down

0 comments on commit e201d43

Please sign in to comment.