types-httpretty 1.1.4.20260720__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- types_httpretty-1.1.4.20260720/.github/workflows/ci.yml +37 -0
- types_httpretty-1.1.4.20260720/.github/workflows/release.yml +68 -0
- types_httpretty-1.1.4.20260720/.gitignore +9 -0
- types_httpretty-1.1.4.20260720/LICENSE +21 -0
- types_httpretty-1.1.4.20260720/MANIFEST.in +5 -0
- types_httpretty-1.1.4.20260720/PKG-INFO +67 -0
- types_httpretty-1.1.4.20260720/README.md +31 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/__init__.pyi +64 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/compat.pyi +14 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/core.pyi +236 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/errors.pyi +9 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/http.pyi +33 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/utils.pyi +2 -0
- types_httpretty-1.1.4.20260720/httpretty-stubs/version.pyi +1 -0
- types_httpretty-1.1.4.20260720/pyproject.toml +78 -0
- types_httpretty-1.1.4.20260720/setup.cfg +4 -0
- types_httpretty-1.1.4.20260720/stubtest_allowlist.txt +29 -0
- types_httpretty-1.1.4.20260720/tests/__init__.py +1 -0
- types_httpretty-1.1.4.20260720/tests/test_runtime.py +13 -0
- types_httpretty-1.1.4.20260720/tests/typecheck/__init__.py +1 -0
- types_httpretty-1.1.4.20260720/tests/typecheck/check_usage.py +25 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/PKG-INFO +67 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/SOURCES.txt +26 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/dependency_links.txt +1 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/requires.txt +16 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/scm_file_list.json +23 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/scm_version.json +8 -0
- types_httpretty-1.1.4.20260720/types_httpretty.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
|
|
7
|
+
concurrency:
|
|
8
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
9
|
+
cancel-in-progress: true
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
test:
|
|
16
|
+
name: Python ${{ matrix.python-version }}
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
24
|
+
with:
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.2.0
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
- run: python -m pip install '.[dev]'
|
|
30
|
+
- run: python -m pytest
|
|
31
|
+
- run: python -m mypy tests/typecheck
|
|
32
|
+
- run: pyright tests/typecheck
|
|
33
|
+
- run: python -m mypy.stubtest httpretty --allowlist stubtest_allowlist.txt
|
|
34
|
+
- if: matrix.python-version == '3.14'
|
|
35
|
+
run: ruff check . && ruff format --check .
|
|
36
|
+
- if: matrix.python-version == '3.14'
|
|
37
|
+
run: python -m build && check-wheel-contents dist/*.whl && twine check dist/*
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Release
|
|
3
|
+
|
|
4
|
+
on: workflow_dispatch
|
|
5
|
+
|
|
6
|
+
concurrency:
|
|
7
|
+
group: release
|
|
8
|
+
cancel-in-progress: false
|
|
9
|
+
|
|
10
|
+
permissions: {}
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
name: Publish a release
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
# PyPI trusted publishing is scoped to this environment.
|
|
18
|
+
environment: release
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
id-token: write # Required by PyPI trusted publishing.
|
|
22
|
+
contents: write # Required to create the tag and GitHub release.
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
26
|
+
with:
|
|
27
|
+
# Fetch tags so setuptools-scm can derive the package version.
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
persist-credentials: false
|
|
30
|
+
|
|
31
|
+
- name: Install uv
|
|
32
|
+
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
|
|
33
|
+
with:
|
|
34
|
+
enable-cache: false
|
|
35
|
+
|
|
36
|
+
- name: Calculate version
|
|
37
|
+
id: version
|
|
38
|
+
# PEP 440 version: HTTPretty version followed by the release date.
|
|
39
|
+
run: echo "version=1.1.4.$(date -u +%Y%m%d)" >> "$GITHUB_OUTPUT"
|
|
40
|
+
|
|
41
|
+
- name: Tag the release
|
|
42
|
+
id: tag_version
|
|
43
|
+
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
|
|
44
|
+
with:
|
|
45
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
46
|
+
custom_tag: ${{ steps.version.outputs.version }}
|
|
47
|
+
tag_prefix: ''
|
|
48
|
+
|
|
49
|
+
- name: Create a GitHub release
|
|
50
|
+
env:
|
|
51
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
52
|
+
NEW_TAG: ${{ steps.tag_version.outputs.new_tag }}
|
|
53
|
+
run: gh release create "$NEW_TAG" --generate-notes --latest
|
|
54
|
+
|
|
55
|
+
- name: Build a wheel and source tarball
|
|
56
|
+
env:
|
|
57
|
+
NEW_TAG: ${{ steps.tag_version.outputs.new_tag }}
|
|
58
|
+
run: |
|
|
59
|
+
git fetch --tags
|
|
60
|
+
git checkout "$NEW_TAG"
|
|
61
|
+
uv build --sdist --wheel --out-dir dist/
|
|
62
|
+
uv run --extra=release check-wheel-contents dist/*.whl
|
|
63
|
+
|
|
64
|
+
- name: Publish distribution to PyPI
|
|
65
|
+
# Configure the GitHub environment as a trusted publisher on PyPI.
|
|
66
|
+
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # release/v1
|
|
67
|
+
with:
|
|
68
|
+
verbose: true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Adam Dangoor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: types-httpretty
|
|
3
|
+
Version: 1.1.4.20260720
|
|
4
|
+
Summary: Typing stubs for HTTPretty
|
|
5
|
+
Author-email: Adam Dangoor <adamdangoor@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Source, https://github.com/adamtheturtle/types-httpretty
|
|
8
|
+
Project-URL: Issues, https://github.com/adamtheturtle/types-httpretty/issues
|
|
9
|
+
Keywords: httpretty,stubs,typing
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Typing :: Stubs Only
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: typing-extensions>=4.10
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: build==1.3.0; extra == "dev"
|
|
24
|
+
Requires-Dist: check-manifest==0.51; extra == "dev"
|
|
25
|
+
Requires-Dist: check-wheel-contents==0.6.3; extra == "dev"
|
|
26
|
+
Requires-Dist: httpretty==1.1.4; extra == "dev"
|
|
27
|
+
Requires-Dist: mypy==2.3.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pyright==1.1.411; extra == "dev"
|
|
29
|
+
Requires-Dist: pyroma==5.0.1; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest==9.1.1; extra == "dev"
|
|
31
|
+
Requires-Dist: ruff==0.15.22; extra == "dev"
|
|
32
|
+
Requires-Dist: twine==6.2.0; extra == "dev"
|
|
33
|
+
Provides-Extra: release
|
|
34
|
+
Requires-Dist: check-wheel-contents==0.6.3; extra == "release"
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+
# types-httpretty
|
|
38
|
+
|
|
39
|
+
Typing stubs for [HTTPretty](https://github.com/gabrielfalcao/HTTPretty).
|
|
40
|
+
|
|
41
|
+
```console
|
|
42
|
+
python -m pip install types-httpretty
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The package contains no runtime code. Install `httpretty` separately (or let
|
|
46
|
+
your application declare it as its runtime dependency).
|
|
47
|
+
|
|
48
|
+
The stubs currently target HTTPretty 1.1.4 and require Python 3.10 or newer.
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
```console
|
|
53
|
+
python -m venv .venv
|
|
54
|
+
.venv/bin/pip install '.[dev]'
|
|
55
|
+
.venv/bin/pytest
|
|
56
|
+
.venv/bin/ruff check .
|
|
57
|
+
.venv/bin/ruff format --check .
|
|
58
|
+
.venv/bin/mypy tests/typecheck
|
|
59
|
+
.venv/bin/pyright tests/typecheck
|
|
60
|
+
.venv/bin/python -m mypy.stubtest httpretty --allowlist stubtest_allowlist.txt
|
|
61
|
+
.venv/bin/python -m build
|
|
62
|
+
.venv/bin/check-wheel-contents dist/*.whl
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# types-httpretty
|
|
2
|
+
|
|
3
|
+
Typing stubs for [HTTPretty](https://github.com/gabrielfalcao/HTTPretty).
|
|
4
|
+
|
|
5
|
+
```console
|
|
6
|
+
python -m pip install types-httpretty
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The package contains no runtime code. Install `httpretty` separately (or let
|
|
10
|
+
your application declare it as its runtime dependency).
|
|
11
|
+
|
|
12
|
+
The stubs currently target HTTPretty 1.1.4 and require Python 3.10 or newer.
|
|
13
|
+
|
|
14
|
+
## Development
|
|
15
|
+
|
|
16
|
+
```console
|
|
17
|
+
python -m venv .venv
|
|
18
|
+
.venv/bin/pip install '.[dev]'
|
|
19
|
+
.venv/bin/pytest
|
|
20
|
+
.venv/bin/ruff check .
|
|
21
|
+
.venv/bin/ruff format --check .
|
|
22
|
+
.venv/bin/mypy tests/typecheck
|
|
23
|
+
.venv/bin/pyright tests/typecheck
|
|
24
|
+
.venv/bin/python -m mypy.stubtest httpretty --allowlist stubtest_allowlist.txt
|
|
25
|
+
.venv/bin/python -m build
|
|
26
|
+
.venv/bin/check-wheel-contents dist/*.whl
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from .core import (
|
|
4
|
+
EmptyRequestHeaders as EmptyRequestHeaders,
|
|
5
|
+
)
|
|
6
|
+
from .core import (
|
|
7
|
+
Entry as Entry,
|
|
8
|
+
)
|
|
9
|
+
from .core import (
|
|
10
|
+
HTTPrettyRequest as HTTPrettyRequest,
|
|
11
|
+
)
|
|
12
|
+
from .core import (
|
|
13
|
+
HTTPrettyRequestEmpty as HTTPrettyRequestEmpty,
|
|
14
|
+
)
|
|
15
|
+
from .core import (
|
|
16
|
+
URIInfo as URIInfo,
|
|
17
|
+
)
|
|
18
|
+
from .core import (
|
|
19
|
+
URIMatcher as URIMatcher,
|
|
20
|
+
)
|
|
21
|
+
from .core import (
|
|
22
|
+
get_default_thread_timeout as get_default_thread_timeout,
|
|
23
|
+
)
|
|
24
|
+
from .core import (
|
|
25
|
+
httprettified as httprettified,
|
|
26
|
+
)
|
|
27
|
+
from .core import (
|
|
28
|
+
httprettized as httprettized,
|
|
29
|
+
)
|
|
30
|
+
from .core import (
|
|
31
|
+
httpretty as httpretty,
|
|
32
|
+
)
|
|
33
|
+
from .core import (
|
|
34
|
+
set_default_thread_timeout as set_default_thread_timeout,
|
|
35
|
+
)
|
|
36
|
+
from .errors import (
|
|
37
|
+
HTTPrettyError as HTTPrettyError,
|
|
38
|
+
)
|
|
39
|
+
from .errors import (
|
|
40
|
+
UnmockedError as UnmockedError,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
__version__: str
|
|
44
|
+
HTTPretty = httpretty
|
|
45
|
+
activate = httprettified
|
|
46
|
+
enabled = httprettized
|
|
47
|
+
enable = httpretty.enable
|
|
48
|
+
register_uri = httpretty.register_uri
|
|
49
|
+
disable = httpretty.disable
|
|
50
|
+
is_enabled = httpretty.is_enabled
|
|
51
|
+
reset = httpretty.reset
|
|
52
|
+
Response = httpretty.Response
|
|
53
|
+
GET: Literal["GET"]
|
|
54
|
+
PUT: Literal["PUT"]
|
|
55
|
+
POST: Literal["POST"]
|
|
56
|
+
DELETE: Literal["DELETE"]
|
|
57
|
+
HEAD: Literal["HEAD"]
|
|
58
|
+
PATCH: Literal["PATCH"]
|
|
59
|
+
OPTIONS: Literal["OPTIONS"]
|
|
60
|
+
CONNECT: Literal["CONNECT"]
|
|
61
|
+
|
|
62
|
+
def last_request() -> HTTPrettyRequest | HTTPrettyRequestEmpty: ...
|
|
63
|
+
def latest_requests() -> list[HTTPrettyRequest]: ...
|
|
64
|
+
def has_request() -> bool: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
PY3: bool
|
|
4
|
+
StringIO: type
|
|
5
|
+
text_type: type[str]
|
|
6
|
+
|
|
7
|
+
class BaseClass:
|
|
8
|
+
def __str__(self) -> str: ...
|
|
9
|
+
def __repr__(self) -> str: ...
|
|
10
|
+
def __eq__(self, other: object) -> bool: ...
|
|
11
|
+
def __hash__(self) -> int: ...
|
|
12
|
+
|
|
13
|
+
def encode_obj(in_obj: Any) -> bytes: ...
|
|
14
|
+
def unquote_utf8(qs: str) -> str: ...
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from collections.abc import Callable, Iterable, Mapping
|
|
3
|
+
from contextlib import AbstractContextManager
|
|
4
|
+
from http.client import HTTPMessage
|
|
5
|
+
from types import TracebackType
|
|
6
|
+
from typing import Any, Literal, TypeAlias, overload
|
|
7
|
+
|
|
8
|
+
from typing_extensions import ParamSpec
|
|
9
|
+
|
|
10
|
+
from .http import HttpBaseClass
|
|
11
|
+
|
|
12
|
+
_P = ParamSpec("_P")
|
|
13
|
+
_HTTPMethod: TypeAlias = Literal[
|
|
14
|
+
"GET", "PUT", "POST", "DELETE", "HEAD", "PATCH", "OPTIONS", "CONNECT"
|
|
15
|
+
]
|
|
16
|
+
_URI: TypeAlias = str | re.Pattern[str]
|
|
17
|
+
_Headers: TypeAlias = Mapping[str, str]
|
|
18
|
+
_Body: TypeAlias = str | bytes
|
|
19
|
+
_ResponseBody: TypeAlias = (
|
|
20
|
+
_Body
|
|
21
|
+
| Callable[[HTTPrettyRequest, str, _Headers], tuple[int, _Headers, _Body]]
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
def set_default_thread_timeout(timeout: float) -> None: ...
|
|
25
|
+
def get_default_thread_timeout() -> float: ...
|
|
26
|
+
|
|
27
|
+
class HTTPrettyRequest(HttpBaseClass):
|
|
28
|
+
headers: HTTPMessage
|
|
29
|
+
raw_headers: str
|
|
30
|
+
path: str
|
|
31
|
+
querystring: dict[str, list[str]]
|
|
32
|
+
parsed_body: Any
|
|
33
|
+
created_at: float
|
|
34
|
+
def __init__(
|
|
35
|
+
self,
|
|
36
|
+
headers: str | bytes,
|
|
37
|
+
body: _Body = "",
|
|
38
|
+
sock: object | None = None,
|
|
39
|
+
path_encoding: str = "iso-8859-1",
|
|
40
|
+
) -> None: ...
|
|
41
|
+
@property
|
|
42
|
+
def method(self) -> str: ...
|
|
43
|
+
@property
|
|
44
|
+
def protocol(self) -> str: ...
|
|
45
|
+
@property
|
|
46
|
+
def body(self) -> str: ...
|
|
47
|
+
@body.setter
|
|
48
|
+
def body(self, value: _Body) -> None: ...
|
|
49
|
+
@property
|
|
50
|
+
def url(self) -> str: ...
|
|
51
|
+
@property
|
|
52
|
+
def host(self) -> str: ...
|
|
53
|
+
def parse_querystring(self, qs: str) -> dict[str, list[str]]: ...
|
|
54
|
+
def parse_request_body(self, body: str) -> Any: ...
|
|
55
|
+
|
|
56
|
+
class EmptyRequestHeaders(dict[str, str]): ...
|
|
57
|
+
|
|
58
|
+
class HTTPrettyRequestEmpty:
|
|
59
|
+
method: str | None
|
|
60
|
+
url: str | None
|
|
61
|
+
body: str
|
|
62
|
+
headers: EmptyRequestHeaders
|
|
63
|
+
|
|
64
|
+
class Entry(HttpBaseClass):
|
|
65
|
+
method: _HTTPMethod
|
|
66
|
+
uri: str
|
|
67
|
+
request: HTTPrettyRequest
|
|
68
|
+
body: _Body
|
|
69
|
+
status: int
|
|
70
|
+
streaming: bool
|
|
71
|
+
adding_headers: dict[str, str]
|
|
72
|
+
forcing_headers: dict[str, str]
|
|
73
|
+
def __init__(
|
|
74
|
+
self,
|
|
75
|
+
method: _HTTPMethod,
|
|
76
|
+
uri: str,
|
|
77
|
+
body: _ResponseBody,
|
|
78
|
+
adding_headers: _Headers | None = None,
|
|
79
|
+
forcing_headers: _Headers | None = None,
|
|
80
|
+
status: int = 200,
|
|
81
|
+
streaming: bool = False,
|
|
82
|
+
**headers: str,
|
|
83
|
+
) -> None: ...
|
|
84
|
+
def validate(self) -> None: ...
|
|
85
|
+
def normalize_headers(self, headers: _Headers) -> dict[str, str]: ...
|
|
86
|
+
def fill_filekind(self, fk: Any) -> None: ...
|
|
87
|
+
|
|
88
|
+
class URIInfo(HttpBaseClass):
|
|
89
|
+
default_str_attrs: tuple[str, ...]
|
|
90
|
+
username: str
|
|
91
|
+
password: str
|
|
92
|
+
hostname: str
|
|
93
|
+
port: int
|
|
94
|
+
path: str
|
|
95
|
+
query: str
|
|
96
|
+
scheme: str
|
|
97
|
+
fragment: str
|
|
98
|
+
last_request: HTTPrettyRequest | None
|
|
99
|
+
def __init__(
|
|
100
|
+
self,
|
|
101
|
+
username: str = "",
|
|
102
|
+
password: str = "",
|
|
103
|
+
hostname: str = "",
|
|
104
|
+
port: int = 80,
|
|
105
|
+
path: str = "/",
|
|
106
|
+
query: str = "",
|
|
107
|
+
fragment: str = "",
|
|
108
|
+
scheme: str = "",
|
|
109
|
+
last_request: HTTPrettyRequest | None = None,
|
|
110
|
+
) -> None: ...
|
|
111
|
+
def to_str(self, attrs: Iterable[str]) -> str: ...
|
|
112
|
+
def str_with_query(self) -> str: ...
|
|
113
|
+
def full_url(self, use_querystring: bool = True) -> str: ...
|
|
114
|
+
def get_full_domain(self) -> str: ...
|
|
115
|
+
@classmethod
|
|
116
|
+
def from_uri(cls, uri: str, entry: Entry) -> URIInfo: ...
|
|
117
|
+
|
|
118
|
+
class URIMatcher:
|
|
119
|
+
regex: re.Pattern[str] | None
|
|
120
|
+
info: URIInfo | None
|
|
121
|
+
entries: list[Entry]
|
|
122
|
+
priority: int
|
|
123
|
+
uri: _URI
|
|
124
|
+
def __init__(
|
|
125
|
+
self,
|
|
126
|
+
uri: _URI,
|
|
127
|
+
entries: Iterable[Entry],
|
|
128
|
+
match_querystring: bool = False,
|
|
129
|
+
priority: int = 0,
|
|
130
|
+
) -> None: ...
|
|
131
|
+
def matches(self, info: URIInfo) -> bool: ...
|
|
132
|
+
def get_next_entry(
|
|
133
|
+
self, method: _HTTPMethod, info: URIInfo, request: HTTPrettyRequest
|
|
134
|
+
) -> Entry: ...
|
|
135
|
+
|
|
136
|
+
class httpretty(HttpBaseClass):
|
|
137
|
+
GET: Literal["GET"]
|
|
138
|
+
PUT: Literal["PUT"]
|
|
139
|
+
POST: Literal["POST"]
|
|
140
|
+
DELETE: Literal["DELETE"]
|
|
141
|
+
HEAD: Literal["HEAD"]
|
|
142
|
+
PATCH: Literal["PATCH"]
|
|
143
|
+
OPTIONS: Literal["OPTIONS"]
|
|
144
|
+
CONNECT: Literal["CONNECT"]
|
|
145
|
+
METHODS: tuple[_HTTPMethod, ...]
|
|
146
|
+
latest_requests: list[HTTPrettyRequest]
|
|
147
|
+
last_request: HTTPrettyRequest | HTTPrettyRequestEmpty
|
|
148
|
+
allow_net_connect: bool
|
|
149
|
+
@classmethod
|
|
150
|
+
def match_uriinfo(
|
|
151
|
+
cls, info: URIInfo
|
|
152
|
+
) -> tuple[Entry | None, list[str]]: ...
|
|
153
|
+
@classmethod
|
|
154
|
+
def match_https_hostname(cls, hostname: str) -> bool: ...
|
|
155
|
+
@classmethod
|
|
156
|
+
def match_http_address(cls, hostname: str, port: int) -> bool: ...
|
|
157
|
+
@classmethod
|
|
158
|
+
def record(
|
|
159
|
+
cls,
|
|
160
|
+
filename: str,
|
|
161
|
+
indentation: int = 4,
|
|
162
|
+
encoding: str = "utf-8",
|
|
163
|
+
verbose: bool = False,
|
|
164
|
+
allow_net_connect: bool = True,
|
|
165
|
+
pool_manager_params: Mapping[str, Any] | None = None,
|
|
166
|
+
) -> AbstractContextManager[None]: ...
|
|
167
|
+
@classmethod
|
|
168
|
+
def playback(
|
|
169
|
+
cls,
|
|
170
|
+
filename: str,
|
|
171
|
+
allow_net_connect: bool = True,
|
|
172
|
+
verbose: bool = False,
|
|
173
|
+
) -> AbstractContextManager[None]: ...
|
|
174
|
+
@classmethod
|
|
175
|
+
def reset(cls) -> None: ...
|
|
176
|
+
@classmethod
|
|
177
|
+
def historify_request(
|
|
178
|
+
cls, headers: str | bytes, body: _Body = "", sock: object | None = None
|
|
179
|
+
) -> HTTPrettyRequest: ...
|
|
180
|
+
@classmethod
|
|
181
|
+
def register_uri(
|
|
182
|
+
cls,
|
|
183
|
+
method: _HTTPMethod,
|
|
184
|
+
uri: _URI,
|
|
185
|
+
body: _ResponseBody = '{"message": "HTTPretty :)"}',
|
|
186
|
+
adding_headers: _Headers | None = None,
|
|
187
|
+
forcing_headers: _Headers | None = None,
|
|
188
|
+
status: int = 200,
|
|
189
|
+
responses: Iterable[Entry] | None = None,
|
|
190
|
+
match_querystring: bool = False,
|
|
191
|
+
priority: int = 0,
|
|
192
|
+
**headers: str,
|
|
193
|
+
) -> None: ...
|
|
194
|
+
@classmethod
|
|
195
|
+
def Response(
|
|
196
|
+
cls,
|
|
197
|
+
body: _ResponseBody,
|
|
198
|
+
method: _HTTPMethod | None = None,
|
|
199
|
+
uri: str | None = None,
|
|
200
|
+
adding_headers: _Headers | None = None,
|
|
201
|
+
forcing_headers: _Headers | None = None,
|
|
202
|
+
status: int = 200,
|
|
203
|
+
streaming: bool = False,
|
|
204
|
+
**headers: str,
|
|
205
|
+
) -> Entry: ...
|
|
206
|
+
@classmethod
|
|
207
|
+
def disable(cls) -> None: ...
|
|
208
|
+
@classmethod
|
|
209
|
+
def is_enabled(cls) -> bool: ...
|
|
210
|
+
@classmethod
|
|
211
|
+
def enable(
|
|
212
|
+
cls, allow_net_connect: bool = True, verbose: bool = False
|
|
213
|
+
) -> None: ...
|
|
214
|
+
|
|
215
|
+
class httprettized:
|
|
216
|
+
allow_net_connect: bool
|
|
217
|
+
verbose: bool
|
|
218
|
+
def __init__(
|
|
219
|
+
self, allow_net_connect: bool = True, verbose: bool = False
|
|
220
|
+
) -> None: ...
|
|
221
|
+
def __enter__(self) -> None: ...
|
|
222
|
+
def __exit__(
|
|
223
|
+
self,
|
|
224
|
+
exc_type: type[BaseException] | None,
|
|
225
|
+
exc_value: BaseException | None,
|
|
226
|
+
traceback: TracebackType | None,
|
|
227
|
+
) -> None: ...
|
|
228
|
+
|
|
229
|
+
@overload
|
|
230
|
+
def httprettified(test: Callable[_P, Any]) -> Callable[_P, Any]: ...
|
|
231
|
+
@overload
|
|
232
|
+
def httprettified(
|
|
233
|
+
test: None = None,
|
|
234
|
+
allow_net_connect: bool = True,
|
|
235
|
+
verbose: bool = False,
|
|
236
|
+
) -> Callable[[Callable[_P, Any]], Callable[_P, Any]]: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
STATUSES: dict[int, str]
|
|
4
|
+
|
|
5
|
+
class HttpBaseClass:
|
|
6
|
+
GET: Literal["GET"]
|
|
7
|
+
PUT: Literal["PUT"]
|
|
8
|
+
POST: Literal["POST"]
|
|
9
|
+
DELETE: Literal["DELETE"]
|
|
10
|
+
HEAD: Literal["HEAD"]
|
|
11
|
+
PATCH: Literal["PATCH"]
|
|
12
|
+
OPTIONS: Literal["OPTIONS"]
|
|
13
|
+
CONNECT: Literal["CONNECT"]
|
|
14
|
+
METHODS: tuple[
|
|
15
|
+
Literal[
|
|
16
|
+
"GET",
|
|
17
|
+
"PUT",
|
|
18
|
+
"POST",
|
|
19
|
+
"DELETE",
|
|
20
|
+
"HEAD",
|
|
21
|
+
"PATCH",
|
|
22
|
+
"OPTIONS",
|
|
23
|
+
"CONNECT",
|
|
24
|
+
],
|
|
25
|
+
...,
|
|
26
|
+
]
|
|
27
|
+
def __str__(self) -> str: ...
|
|
28
|
+
def __repr__(self) -> str: ...
|
|
29
|
+
def __eq__(self, other: object, /) -> bool: ...
|
|
30
|
+
def __hash__(self) -> int: ...
|
|
31
|
+
|
|
32
|
+
def parse_requestline(s: str | bytes) -> tuple[str, str, str]: ...
|
|
33
|
+
def last_requestline(sent_data: str | bytes) -> tuple[str, str, str]: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version: str
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
build-backend = "setuptools.build_meta"
|
|
3
|
+
requires = ["setuptools>=77", "setuptools-scm>=8.1"]
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "types-httpretty"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Typing stubs for HTTPretty"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
keywords = ["httpretty", "stubs", "typing"]
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Adam Dangoor", email = "adamdangoor@gmail.com" },
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Programming Language :: Python :: 3.14",
|
|
24
|
+
"Typing :: Stubs Only",
|
|
25
|
+
]
|
|
26
|
+
dependencies = ["typing-extensions>=4.10"]
|
|
27
|
+
optional-dependencies.dev = [
|
|
28
|
+
"build==1.3.0",
|
|
29
|
+
"check-manifest==0.51",
|
|
30
|
+
"check-wheel-contents==0.6.3",
|
|
31
|
+
"httpretty==1.1.4",
|
|
32
|
+
"mypy==2.3.0",
|
|
33
|
+
"pyright==1.1.411",
|
|
34
|
+
"pyroma==5.0.1",
|
|
35
|
+
"pytest==9.1.1",
|
|
36
|
+
"ruff==0.15.22",
|
|
37
|
+
"twine==6.2.0",
|
|
38
|
+
]
|
|
39
|
+
optional-dependencies.release = ["check-wheel-contents==0.6.3"]
|
|
40
|
+
urls.Source = "https://github.com/adamtheturtle/types-httpretty"
|
|
41
|
+
urls.Issues = "https://github.com/adamtheturtle/types-httpretty/issues"
|
|
42
|
+
|
|
43
|
+
[tool.setuptools]
|
|
44
|
+
include-package-data = true
|
|
45
|
+
packages = ["httpretty-stubs"]
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.package-data]
|
|
48
|
+
"httpretty-stubs" = ["*.pyi"]
|
|
49
|
+
|
|
50
|
+
[tool.setuptools_scm]
|
|
51
|
+
fallback_version = "1.1.4.20260720"
|
|
52
|
+
|
|
53
|
+
[tool.ruff]
|
|
54
|
+
line-length = 79
|
|
55
|
+
lint.select = ["ALL"]
|
|
56
|
+
lint.ignore = ["COM812", "D205", "D212", "ISC001", "PYI021"]
|
|
57
|
+
lint.per-file-ignores."httpretty-stubs/**" = [
|
|
58
|
+
"ANN401",
|
|
59
|
+
"N801",
|
|
60
|
+
"N802",
|
|
61
|
+
"PYI029",
|
|
62
|
+
]
|
|
63
|
+
lint.per-file-ignores."tests/**" = ["D100", "D103", "S101"]
|
|
64
|
+
lint.pydocstyle.convention = "google"
|
|
65
|
+
|
|
66
|
+
[tool.mypy]
|
|
67
|
+
strict = true
|
|
68
|
+
warn_unreachable = true
|
|
69
|
+
|
|
70
|
+
[tool.pyright]
|
|
71
|
+
include = ["tests/typecheck"]
|
|
72
|
+
pythonVersion = "3.10"
|
|
73
|
+
reportMissingModuleSource = false
|
|
74
|
+
typeCheckingMode = "strict"
|
|
75
|
+
|
|
76
|
+
[tool.pytest.ini_options]
|
|
77
|
+
addopts = ["--strict-config", "--strict-markers"]
|
|
78
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Implementation details not supported as public API by this stub package.
|
|
2
|
+
httpretty.compat.*
|
|
3
|
+
httpretty.core.DEFAULT_HTTP_PORTS
|
|
4
|
+
httpretty.core.DEFAULT_HTTPS_PORTS
|
|
5
|
+
httpretty.core.FALLBACK_FUNCTION
|
|
6
|
+
httpretty.core.FakeAddressTuple
|
|
7
|
+
httpretty.core.FakeSSLSocket
|
|
8
|
+
httpretty.core.FakeSockFile
|
|
9
|
+
httpretty.core.MULTILINE_ANY_REGEX
|
|
10
|
+
httpretty.core.hostname_re
|
|
11
|
+
httpretty.core.logger
|
|
12
|
+
httpretty.core.POTENTIAL_HTTP_PORTS
|
|
13
|
+
httpretty.core.POTENTIAL_HTTPS_PORTS
|
|
14
|
+
httpretty.core.SOCKET_GLOBAL_DEFAULT_TIMEOUT
|
|
15
|
+
httpretty.core.__internals__
|
|
16
|
+
httpretty.core.apply_patch_socket
|
|
17
|
+
httpretty.core.create_fake_connection
|
|
18
|
+
httpretty.core.fake_getaddrinfo
|
|
19
|
+
httpretty.core.fake_gethostbyname
|
|
20
|
+
httpretty.core.fake_gethostname
|
|
21
|
+
httpretty.core.fake_socketpair
|
|
22
|
+
httpretty.core.fake_wrap_socket
|
|
23
|
+
httpretty.core.fakesock
|
|
24
|
+
httpretty.core.old_.*
|
|
25
|
+
httpretty.core.pyopenssl_overrides_.*
|
|
26
|
+
httpretty.core.restored_libs
|
|
27
|
+
httpretty.core.undo_patch_socket
|
|
28
|
+
httpretty.core.url_fix
|
|
29
|
+
httpretty.core.with_socket_is_secure
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Tests for types-httpretty."""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
import httpretty
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_stub_package_contains_no_runtime_python() -> None:
|
|
7
|
+
root = Path(__file__).parents[1] / "httpretty-stubs"
|
|
8
|
+
assert not list(root.glob("*.py"))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_runtime_smoke() -> None:
|
|
12
|
+
with httpretty.enabled(allow_net_connect=False):
|
|
13
|
+
httpretty.register_uri(httpretty.GET, "https://example.com", body="ok")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Static type-checking fixtures."""
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import httpretty
|
|
2
|
+
from typing_extensions import assert_type
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@httpretty.activate(allow_net_connect=False)
|
|
6
|
+
def decorated() -> int:
|
|
7
|
+
httpretty.register_uri(
|
|
8
|
+
httpretty.GET,
|
|
9
|
+
"https://example.com/",
|
|
10
|
+
body="ok",
|
|
11
|
+
status=200,
|
|
12
|
+
content_type="text/plain",
|
|
13
|
+
)
|
|
14
|
+
assert_type(
|
|
15
|
+
httpretty.last_request(),
|
|
16
|
+
httpretty.HTTPrettyRequest | httpretty.HTTPrettyRequestEmpty,
|
|
17
|
+
)
|
|
18
|
+
assert_type(httpretty.latest_requests(), list[httpretty.HTTPrettyRequest])
|
|
19
|
+
assert_type(httpretty.has_request(), bool)
|
|
20
|
+
return 1
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
with httpretty.enabled(allow_net_connect=False):
|
|
24
|
+
response = httpretty.Response("ok", status=201)
|
|
25
|
+
assert_type(response, httpretty.Entry)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: types-httpretty
|
|
3
|
+
Version: 1.1.4.20260720
|
|
4
|
+
Summary: Typing stubs for HTTPretty
|
|
5
|
+
Author-email: Adam Dangoor <adamdangoor@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Source, https://github.com/adamtheturtle/types-httpretty
|
|
8
|
+
Project-URL: Issues, https://github.com/adamtheturtle/types-httpretty/issues
|
|
9
|
+
Keywords: httpretty,stubs,typing
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Typing :: Stubs Only
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: typing-extensions>=4.10
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: build==1.3.0; extra == "dev"
|
|
24
|
+
Requires-Dist: check-manifest==0.51; extra == "dev"
|
|
25
|
+
Requires-Dist: check-wheel-contents==0.6.3; extra == "dev"
|
|
26
|
+
Requires-Dist: httpretty==1.1.4; extra == "dev"
|
|
27
|
+
Requires-Dist: mypy==2.3.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pyright==1.1.411; extra == "dev"
|
|
29
|
+
Requires-Dist: pyroma==5.0.1; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest==9.1.1; extra == "dev"
|
|
31
|
+
Requires-Dist: ruff==0.15.22; extra == "dev"
|
|
32
|
+
Requires-Dist: twine==6.2.0; extra == "dev"
|
|
33
|
+
Provides-Extra: release
|
|
34
|
+
Requires-Dist: check-wheel-contents==0.6.3; extra == "release"
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+
# types-httpretty
|
|
38
|
+
|
|
39
|
+
Typing stubs for [HTTPretty](https://github.com/gabrielfalcao/HTTPretty).
|
|
40
|
+
|
|
41
|
+
```console
|
|
42
|
+
python -m pip install types-httpretty
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The package contains no runtime code. Install `httpretty` separately (or let
|
|
46
|
+
your application declare it as its runtime dependency).
|
|
47
|
+
|
|
48
|
+
The stubs currently target HTTPretty 1.1.4 and require Python 3.10 or newer.
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
```console
|
|
53
|
+
python -m venv .venv
|
|
54
|
+
.venv/bin/pip install '.[dev]'
|
|
55
|
+
.venv/bin/pytest
|
|
56
|
+
.venv/bin/ruff check .
|
|
57
|
+
.venv/bin/ruff format --check .
|
|
58
|
+
.venv/bin/mypy tests/typecheck
|
|
59
|
+
.venv/bin/pyright tests/typecheck
|
|
60
|
+
.venv/bin/python -m mypy.stubtest httpretty --allowlist stubtest_allowlist.txt
|
|
61
|
+
.venv/bin/python -m build
|
|
62
|
+
.venv/bin/check-wheel-contents dist/*.whl
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
LICENSE
|
|
3
|
+
MANIFEST.in
|
|
4
|
+
README.md
|
|
5
|
+
pyproject.toml
|
|
6
|
+
stubtest_allowlist.txt
|
|
7
|
+
.github/workflows/ci.yml
|
|
8
|
+
.github/workflows/release.yml
|
|
9
|
+
httpretty-stubs/__init__.pyi
|
|
10
|
+
httpretty-stubs/compat.pyi
|
|
11
|
+
httpretty-stubs/core.pyi
|
|
12
|
+
httpretty-stubs/errors.pyi
|
|
13
|
+
httpretty-stubs/http.pyi
|
|
14
|
+
httpretty-stubs/utils.pyi
|
|
15
|
+
httpretty-stubs/version.pyi
|
|
16
|
+
tests/__init__.py
|
|
17
|
+
tests/test_runtime.py
|
|
18
|
+
tests/typecheck/__init__.py
|
|
19
|
+
tests/typecheck/check_usage.py
|
|
20
|
+
types_httpretty.egg-info/PKG-INFO
|
|
21
|
+
types_httpretty.egg-info/SOURCES.txt
|
|
22
|
+
types_httpretty.egg-info/dependency_links.txt
|
|
23
|
+
types_httpretty.egg-info/requires.txt
|
|
24
|
+
types_httpretty.egg-info/scm_file_list.json
|
|
25
|
+
types_httpretty.egg-info/scm_version.json
|
|
26
|
+
types_httpretty.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
typing-extensions>=4.10
|
|
2
|
+
|
|
3
|
+
[dev]
|
|
4
|
+
build==1.3.0
|
|
5
|
+
check-manifest==0.51
|
|
6
|
+
check-wheel-contents==0.6.3
|
|
7
|
+
httpretty==1.1.4
|
|
8
|
+
mypy==2.3.0
|
|
9
|
+
pyright==1.1.411
|
|
10
|
+
pyroma==5.0.1
|
|
11
|
+
pytest==9.1.1
|
|
12
|
+
ruff==0.15.22
|
|
13
|
+
twine==6.2.0
|
|
14
|
+
|
|
15
|
+
[release]
|
|
16
|
+
check-wheel-contents==0.6.3
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".gitignore",
|
|
4
|
+
"stubtest_allowlist.txt",
|
|
5
|
+
"README.md",
|
|
6
|
+
"pyproject.toml",
|
|
7
|
+
"MANIFEST.in",
|
|
8
|
+
"LICENSE",
|
|
9
|
+
"httpretty-stubs/errors.pyi",
|
|
10
|
+
"httpretty-stubs/compat.pyi",
|
|
11
|
+
"httpretty-stubs/__init__.pyi",
|
|
12
|
+
"httpretty-stubs/version.pyi",
|
|
13
|
+
"httpretty-stubs/http.pyi",
|
|
14
|
+
"httpretty-stubs/core.pyi",
|
|
15
|
+
"httpretty-stubs/utils.pyi",
|
|
16
|
+
".github/workflows/ci.yml",
|
|
17
|
+
".github/workflows/release.yml",
|
|
18
|
+
"tests/test_runtime.py",
|
|
19
|
+
"tests/__init__.py",
|
|
20
|
+
"tests/typecheck/check_usage.py",
|
|
21
|
+
"tests/typecheck/__init__.py"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
httpretty-stubs
|