From dd59fcb832793eb5a0a5a1329f7cbbd0c1087ba7 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 8 Sep 2026 22:30:10 +0000 Subject: [PATCH] Accept None in uaparse's type signature (already handled) --- uarite/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uarite/core.py b/uarite/core.py index fd8376a..983cc0e 100644 --- a/uarite/core.py +++ b/uarite/core.py @@ -154,7 +154,7 @@ def model_name(model: str) -> str: @lru_cache(maxsize=1024) -def uaparse(ua: str) -> UA: +def uaparse(ua: str | None) -> UA: """Parse a User-Agent string into a compact ``UA`` record. ``pretty`` is "" for empty/missing UAs and the original string when