From c78b564d29bd34d8d055d65278f96315dd0c6bfb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:47:27 +0000 Subject: [PATCH 1/2] chore(deps): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.0.280](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.278...v0.0.280) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a7507f..de5bb1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.278' + rev: 'v0.0.280' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] From fbbce058197c2c1cb238689b0c4cbae167b2e485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Mon, 24 Jul 2023 12:38:18 -0600 Subject: [PATCH 2/2] Fix types --- tap_circle_ci/client.py | 2 +- tap_circle_ci/streams.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_circle_ci/client.py b/tap_circle_ci/client.py index 9f0efcf..4bf3023 100644 --- a/tap_circle_ci/client.py +++ b/tap_circle_ci/client.py @@ -43,7 +43,7 @@ def http_headers(self) -> dict: def get_url_params( self, context: dict | None, # noqa: ARG002 - next_page_token: Any | None, + next_page_token: str | None, ) -> dict[str, Any]: """Return a dictionary of values to be used in URL parameterization.""" params: dict = {} diff --git a/tap_circle_ci/streams.py b/tap_circle_ci/streams.py index b0434ef..4aaf841 100644 --- a/tap_circle_ci/streams.py +++ b/tap_circle_ci/streams.py @@ -31,7 +31,7 @@ def get_child_context( def get_url_params( self, context: dict | None, - next_page_token: t.Any | None, + next_page_token: str | None, ) -> dict[str, t.Any]: """Return a dictionary of values to be used in URL parameterization.""" params = super().get_url_params(context, next_page_token)