Use probatio.Port for the port validator (#183737)

This commit is contained in:
Franck Nijhof
2026-09-30 14:35:18 +02:00
committed by GitHub
parent 66fff6c654
commit 1891884c5d
+1 -1
View File
@@ -194,7 +194,7 @@ gps = probatio.ExactSequence([latitude, longitude])
sun_event = probatio.All(
probatio.Lower, probatio.Any(SUN_EVENT_SUNSET, SUN_EVENT_SUNRISE)
)
port = probatio.All(probatio.Coerce(int), probatio.Range(min=1, max=65535))
port = probatio.Port()
def path(value: Any) -> str: