user_agent_parser.pyi 590 B

123456789101112131415161718192021222324252627
  1. from typing import TypedDict
  2. class _ParseUserAgentResult(TypedDict):
  3. family: str
  4. major: str | None
  5. minor: str | None
  6. patch: str | None
  7. class _ParseOsResult(TypedDict):
  8. family: str
  9. major: str | None
  10. minor: str | None
  11. patch: str | None
  12. patch_minor: str | None
  13. class _ParseDeviceResult(TypedDict):
  14. family: str
  15. brand: str | None
  16. model: str | None
  17. class _ParseResult(TypedDict):
  18. user_agent: _ParseUserAgentResult
  19. os: _ParseOsResult
  20. device: _ParseDeviceResult
  21. string: str
  22. def Parse(user_agent_string: str) -> _ParseResult: ...