Skip to content

Commit 5f110cd

Browse files
committed
Format type: ignore
1 parent e6b122e commit 5f110cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onlinejudge_verify/verify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def verify_file(path: pathlib.Path, *, compilers: List[str], tle: float, jobs: i
120120
def main(paths: List[pathlib.Path], *, marker: onlinejudge_verify.marker.VerificationMarker, timeout: float = math.inf, tle: float = 60, jobs: int = 1) -> VerificationSummary:
121121
try:
122122
import resource # pylint: disable=import-outside-toplevel,import-error
123-
_, hard = resource.getrlimit(resource.RLIMIT_STACK) # type: ignore
124-
resource.setrlimit(resource.RLIMIT_STACK, (hard, hard)) # type: ignore
123+
_, hard = resource.getrlimit(resource.RLIMIT_STACK) # type: ignore
124+
resource.setrlimit(resource.RLIMIT_STACK, (hard, hard)) # type: ignore
125125
except Exception:
126126
logger.warning('failed to increase the stack size')
127127
print('::warning ::failed to ulimit')

0 commit comments

Comments
 (0)