Add UserAgent attributes. (#4398)

This commit is contained in:
Sam Bull
2020-08-06 18:08:37 +01:00
committed by GitHub
parent 0b3494f712
commit cea32bdc70

View File

@@ -1,4 +1,4 @@
from typing import Any
from typing import Any, Optional
class UserAgentParser:
platforms: Any
@@ -8,6 +8,10 @@ class UserAgentParser:
class UserAgent:
string: Any
platform: Optional[str]
browser: Optional[str]
version: Optional[str]
language: Optional[str]
def __init__(self, environ_or_string): ...
def to_header(self): ...
def __nonzero__(self): ...