diff --git a/pyproject.toml b/pyproject.toml index 7067389..8ad8f32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/urllib3_sigv4/__init__.py b/urllib3_sigv4/__init__.py index 77e3d0a..22e56ac 100644 --- a/urllib3_sigv4/__init__.py +++ b/urllib3_sigv4/__init__.py @@ -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: @@ -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. diff --git a/urllib3_sigv4/py.typed b/urllib3_sigv4/py.typed new file mode 100644 index 0000000..e69de29