Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# HumanEval/22
|
||||
# Loki Mode Multi-Agent Solution
|
||||
# Attempts: 1
|
||||
# Passed: True
|
||||
|
||||
from typing import List, Any
|
||||
|
||||
|
||||
def filter_integers(values: List[Any]) -> List[int]:
|
||||
""" Filter given list of any python values only for integers
|
||||
>>> filter_integers(['a', 3.14, 5])
|
||||
[5]
|
||||
>>> filter_integers([1, 2, 3, 'abc', {}, []])
|
||||
[1, 2, 3]
|
||||
"""
|
||||
return [x for x in values if isinstance(x, int) and not isinstance(x, bool)]
|
||||
Reference in New Issue
Block a user