Skip to content

The agent that grows with you

refactor(gateway/hosted_rooms_common): drop unused positive_int/non_negative_int partials

Teknium4adfa829961b
diff --git a/gateway/hosted_rooms_common.py b/gateway/hosted_rooms_common.py
index 537a8789b81..259190b4854 100644
--- a/gateway/hosted_rooms_common.py
+++ b/gateway/hosted_rooms_common.py
@@ -13,7 +13,6 @@ import re
import sqlite3
import time
from contextlib import contextmanager
-from functools import partial
from pathlib import Path
from typing import Any, Callable, Iterator, Mapping
@@ -40,10 +39,6 @@ def bounded_int(value: Any, *, error: type[Exception], message: str, low: int =
return value
-positive_int = partial(bounded_int, low=1)
-non_negative_int = partial(bounded_int, low=0)
-
-
def exact_fields(
value: Any, *, label: str, required: frozenset[str] | set[str], optional: frozenset[str] | set[str] = frozenset(),
error: type[Exception], not_object: str | None = None, missing_fmt: str = "{label} is missing fields: {fields}",