Skip to content

Commit e3b252b

Browse files
committed
Fix type errors and package type information
1 parent fc47357 commit e3b252b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ requires-python = ">=3.8"
1717
dependencies = ["boto3>=1.3.1,<1.36.0", "urllib3>=2.0.0,<3.0.0"]
1818

1919
[build-system]
20-
requires = ["setuptools"]
20+
requires = ["setuptools>=61"]
2121
build-backend = "setuptools.build_meta"
2222

23+
[tool.setuptools.package-data]
24+
urllib3_sigv4 = ["py.typed"]
25+
2326
[tool.ruff]
2427
cache-dir = "~/.cache/ruff"
2528
line-length = 79

urllib3_sigv4/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(
2727
region: str | None = None,
2828
access_key: str | None = None,
2929
secret_key: str | None = None,
30-
):
30+
) -> None:
3131
session = boto3._get_default_session()
3232
region = session.region_name if region is None else region
3333
if region is None:
@@ -87,7 +87,7 @@ def request(
8787
**urlopen_kw,
8888
)
8989

90-
def urlopen(
90+
def urlopen( # type: ignore[override]
9191
self, method: str, url: str, redirect: bool = True, **kw: Any
9292
) -> BaseHTTPResponse:
9393
# Sign the request if required before making the actual HTTP request.

urllib3_sigv4/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)