diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 384edbb..05173bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,8 @@ name: Publish update to PyPI on: - - workflow_dispatch - - release: + workflow_dispatch: + release: types: publised jobs: diff --git a/src/knuckles/_api.py b/src/knuckles/_api.py index 648937a..5abe77d 100644 --- a/src/knuckles/_api.py +++ b/src/knuckles/_api.py @@ -119,8 +119,7 @@ def generate_url(self, endpoint: str, extra_params: dict[str, Any]) -> str: prepared_request = PreparedRequest() prepared_request.prepare_url( - f"{self.url}/rest/{endpoint}", {** - self._generate_params(extra_params)} + f"{self.url}/rest/{endpoint}", {**self._generate_params(extra_params)} ) # Ignore the type error caused by the url parameter of prepared_request