request.pyi 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Stubs for requests_mock.request
  2. from typing import Any, Dict, List
  3. class _RequestObjectProxy:
  4. def __init__(self, request: Any, **kwargs: Any) -> None: ...
  5. def __getattr__(self, name: str) -> Any: ...
  6. @property
  7. def scheme(self) -> str: ...
  8. @property
  9. def netloc(self) -> str: ...
  10. @property
  11. def hostname(self) -> str: ...
  12. @property
  13. def port(self) -> int: ...
  14. @property
  15. def path(self) -> str: ...
  16. @property
  17. def query(self) -> str: ...
  18. @property
  19. def qs(self) -> Dict[str, List[str]]: ...
  20. @property
  21. def timeout(self) -> int: ...
  22. @property
  23. def allow_redirects(self) -> bool: ...
  24. @property
  25. def verify(self) -> Any: ...
  26. @property
  27. def stream(self) -> Any: ...
  28. @property
  29. def cert(self) -> Any: ...
  30. @property
  31. def proxies(self) -> Any: ...
  32. @property
  33. def text(self) -> str: ...
  34. def json(self, **kwargs: Any) -> Any: ...
  35. @property
  36. def matcher(self) -> Any: ...
  37. Request = _RequestObjectProxy