diff options
author | 2022-11-24 13:45:41 +0800 | |
---|---|---|
committer | 2022-11-24 13:45:41 +0800 | |
commit | 66c990ec21c98caebb6913df956b1c7b208faf8d (patch) | |
tree | f7a1af8ac1fb21b88927d98f51998675a5244392 | |
parent | Include json in file parse time limit (diff) |
Add missing None hints for limit and timeout
-rw-r--r-- | snekbox/nsjail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index 696f2f9..234aca8 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -51,8 +51,8 @@ class NsJail: max_output_size: int = 1_000_000, read_chunk_size: int = 10_000, memfs_instance_size: int = 48 * 1024 * 1024, - files_limit: int = 100, - files_timeout: float = 15, + files_limit: int | None = 100, + files_timeout: float | None = 8, files_pattern: str = "**/*", ): """ |