mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add UserAgent attributes. (#4398)
This commit is contained in:
6
third_party/2and3/werkzeug/useragents.pyi
vendored
6
third_party/2and3/werkzeug/useragents.pyi
vendored
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user