Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Skythought Evals: Evaluation and Data Generation Tools for Reason
authors = [
{ name = "NovaSky Team" }
]
requires-python = ">=3.9,<3.11"
requires-python = ">=3.9,<3.13"
dependencies = [
"vllm==0.7.0",
"word2number",
Expand Down
12 changes: 6 additions & 6 deletions skythought/evals/scoring/utils/pyext2.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ def modify_function(f, globals={}, name=None, code=None, defaults=None,
newf.__dict__.update(f.__dict__)
return newf
def argspec(f):
return inspect.getargspec(f)
return inspect.getfullargspec(f)
eval(compile('def _exec(m,g): exec m in g', '<exec>', 'exec'))

def _gettypes(args):
return tuple(map(type, args))

oargspec = inspect.getargspec
oargspec = inspect.getfullargspec

def _argspec(func):
return __targspec(func, oargspec)

inspect.getargspec = _argspec
inspect.getfullargspec = _argspec

try:
import IPython
Expand Down Expand Up @@ -253,7 +253,7 @@ def from_objects(module_name_for_code_eval, docstring, **d):

:param docstring: Optional. The module's docstring.

:param \*\*d: All the keyword args, mapped from name->value.
:param **d: All the keyword args, mapped from name->value.

Example: ``RuntimeModule.from_objects('name', 'doc', a=1, b=2)``'''
module = types.ModuleType(module_name_for_code_eval, docstring)
Expand Down Expand Up @@ -387,9 +387,9 @@ def _wrap(f):
def fannotate(*args, **kwargs):
'''Set function annotations using decorators.

:param \*args: The first positional argument is used for the function's return value; all others are discarded.
:param *args: The first positional argument is used for the function's return value; all others are discarded.

:param \**kwargs: This is a mapping of argument names to annotations.
:param **kwargs: This is a mapping of argument names to annotations.

Example::

Expand Down
12 changes: 6 additions & 6 deletions skythought/evals/tasks/taco/pyext2.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ def modify_function(f, globals={}, name=None, code=None, defaults=None,
newf.__dict__.update(f.__dict__)
return newf
def argspec(f):
return inspect.getargspec(f)
return inspect.getfullargspec(f)
eval(compile('def _exec(m,g): exec m in g', '<exec>', 'exec'))

def _gettypes(args):
return tuple(map(type, args))

oargspec = inspect.getargspec
oargspec = inspect.getfullargspec

def _argspec(func):
return __targspec(func, oargspec)

inspect.getargspec = _argspec
inspect.getfullargspec = _argspec

try:
import IPython
Expand Down Expand Up @@ -253,7 +253,7 @@ def from_objects(module_name_for_code_eval, docstring, **d):

:param docstring: Optional. The module's docstring.

:param \*\*d: All the keyword args, mapped from name->value.
:param **d: All the keyword args, mapped from name->value.

Example: ``RuntimeModule.from_objects('name', 'doc', a=1, b=2)``'''
module = types.ModuleType(module_name_for_code_eval, docstring)
Expand Down Expand Up @@ -387,9 +387,9 @@ def _wrap(f):
def fannotate(*args, **kwargs):
'''Set function annotations using decorators.

:param \*args: The first positional argument is used for the function's return value; all others are discarded.
:param *args: The first positional argument is used for the function's return value; all others are discarded.

:param \**kwargs: This is a mapping of argument names to annotations.
:param **kwargs: This is a mapping of argument names to annotations.

Example::

Expand Down