Add files via upload

This commit is contained in:
purr
2025-04-04 21:30:31 +09:00
committed by GitHub
parent 5763658177
commit 966e7691a3
90 changed files with 20938 additions and 0 deletions

27
app/_typing.py Normal file
View File

@@ -0,0 +1,27 @@
from __future__ import annotations
from ipaddress import IPv4Address
from ipaddress import IPv6Address
from typing import Any
from typing import TypeVar
T = TypeVar("T")
IPAddress = IPv4Address | IPv6Address
class _UnsetSentinel:
def __repr__(self) -> str:
return "Unset"
def __copy__(self: T) -> T:
return self
def __reduce__(self) -> str:
return "Unset"
def __deepcopy__(self: T, _: Any) -> T:
return self
UNSET = _UnsetSentinel()