Skip to content

Commit

Permalink
Fix type errors and package type information
Browse files Browse the repository at this point in the history
  • Loading branch information
tlinhart committed Sep 5, 2024
1 parent fc47357 commit e3b252b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ requires-python = ">=3.8"
dependencies = ["boto3>=1.3.1,<1.36.0", "urllib3>=2.0.0,<3.0.0"]

[build-system]
requires = ["setuptools"]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[tool.setuptools.package-data]
urllib3_sigv4 = ["py.typed"]

[tool.ruff]
cache-dir = "~/.cache/ruff"
line-length = 79
Expand Down
4 changes: 2 additions & 2 deletions urllib3_sigv4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
region: str | None = None,
access_key: str | None = None,
secret_key: str | None = None,
):
) -> None:
session = boto3._get_default_session()
region = session.region_name if region is None else region
if region is None:
Expand Down Expand Up @@ -87,7 +87,7 @@ def request(
**urlopen_kw,
)

def urlopen(
def urlopen( # type: ignore[override]
self, method: str, url: str, redirect: bool = True, **kw: Any
) -> BaseHTTPResponse:
# Sign the request if required before making the actual HTTP request.
Expand Down
Empty file added urllib3_sigv4/py.typed
Empty file.

0 comments on commit e3b252b

Please sign in to comment.