File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 33import contextlib
44from dataclasses import dataclass , field
55from signal import Signals
6- from typing import TYPE_CHECKING
6+ from typing import get_args
77
88from discord .utils import escape_markdown , escape_mentions
99
1010from bot .constants import Emojis
11+ from bot .exts .utils .snekbox ._constants import SupportedPythonVersions
1112from bot .exts .utils .snekbox ._io import FILE_COUNT_LIMIT , FILE_SIZE_LIMIT , FileAttachment , sizeof_fmt
1213from bot .log import get_logger
1314
14- if TYPE_CHECKING :
15- from bot .exts .utils .snekbox ._cog import SupportedPythonVersions
16-
1715log = get_logger (__name__ )
1816
1917SIGKILL = 9
@@ -26,7 +24,7 @@ class EvalJob:
2624 args : list [str ]
2725 files : list [FileAttachment ] = field (default_factory = list )
2826 name : str = "eval"
29- version : SupportedPythonVersions = "3.13"
27+ version : SupportedPythonVersions = get_args ( SupportedPythonVersions )[ 0 ]
3028
3129 @classmethod
3230 def from_code (cls , code : str , path : str = "main.py" ) -> EvalJob :
You can’t perform that action at this time.
0 commit comments