We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4611fc5 commit 5d0bfa8Copy full SHA for 5d0bfa8
views/utils.py
@@ -1,4 +1,5 @@
1
import glob
2
+import gc
3
import os
4
from dataclasses import dataclass
5
from pathlib import Path
@@ -114,6 +115,7 @@ def _load_challenges() -> dict[ChallengeName, Challenge]:
114
115
@staticmethod
116
def _type_check_with_mypy(code) -> TypeCheckResult:
117
raw_result = api.run(["--config-file", str(MYPY_CONFIG), "-c", code])
118
+ gc.collect()
119
return TypeCheckResult(
120
stdout=raw_result[0], stderr=raw_result[1], passed=raw_result[2] == 0
121
)
0 commit comments