Skip to content

Commit

Permalink
test no type check
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 30, 2024
1 parent ec6ddde commit 3f35d44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vision_agent/agent/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import signal
import tempfile
import traceback
import typing
from pathlib import Path
from typing import Dict, Generator, List, Optional, Union

Expand Down Expand Up @@ -182,6 +183,7 @@ def swallow_io() -> Generator[WriteOnlyStringIO, None, None]:
yield stream


@typing.no_type_check
@contextlib.contextmanager
def time_limit(seconds: float) -> Generator[None, None, None]:
def signal_handler(signum, frame): # type: ignore
Expand All @@ -196,6 +198,7 @@ def signal_handler(signum, frame): # type: ignore
signal.setitimer(signal.ITIMER_REAL, 0)


@typing.no_type_check
def reliability_guard(maximum_memory_bytes: Optional[int] = None) -> None:
"""
This disables various destructive functions and prevents the generated code
Expand Down

0 comments on commit 3f35d44

Please sign in to comment.