mirror of
https://github.com/github/spec-kit.git
synced 2026-08-03 06:26:30 +08:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -103,11 +103,14 @@ class ShellStep(StepBase):
|
||||
)
|
||||
if "timeout" in config:
|
||||
timeout = config["timeout"]
|
||||
import math
|
||||
|
||||
# bool is a subclass of int, but ``timeout: true`` is a config
|
||||
# error rather than a duration — reject it explicitly.
|
||||
if (
|
||||
isinstance(timeout, bool)
|
||||
or not isinstance(timeout, (int, float))
|
||||
or not math.isfinite(timeout)
|
||||
or timeout <= 0
|
||||
):
|
||||
errors.append(
|
||||
|
||||
Reference in New Issue
Block a user