__init__.pyi 806 B

123456789101112131415161718192021222324252627282930313233
  1. # Stubs for requests_mock
  2. from requests_mock.adapter import (
  3. ANY as ANY,
  4. Adapter as Adapter,
  5. Callback as Callback,
  6. AdditionalMatcher as AdditionalMatcher,
  7. )
  8. from requests_mock.exceptions import (
  9. MockException as MockException,
  10. NoMockAddress as NoMockAddress,
  11. )
  12. from requests_mock.mocker import (
  13. DELETE as DELETE,
  14. GET as GET,
  15. HEAD as HEAD,
  16. Mocker as Mocker,
  17. MockerCore as MockerCore,
  18. OPTIONS as OPTIONS,
  19. PATCH as PATCH,
  20. POST as POST,
  21. PUT as PUT,
  22. mock as mock,
  23. )
  24. from requests_mock.request import (
  25. Request as Request,
  26. _RequestObjectProxy as _RequestObjectProxy, # For backward compatibility
  27. )
  28. from requests_mock.response import (
  29. CookieJar as CookieJar,
  30. create_response as create_response,
  31. Context as Context,
  32. )