diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ccad9d..60ec499 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: '^.*\.(md|MD)$' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -10,7 +10,7 @@ repos: args: ["--fix=lf"] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: @@ -25,7 +25,7 @@ repos: ] - repo: https://github.com/myint/autoflake.git - rev: v2.2.1 + rev: v2.3.1 hooks: - id: autoflake args: @@ -36,18 +36,18 @@ repos: ] - repo: https://github.com/psf/black - rev: "23.3.0" + rev: "24.4.0" hooks: - id: black - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v3.15.1 hooks: - id: pyupgrade args: ["--py37-plus", "--keep-runtime-typing"] - repo: https://github.com/commitizen-tools/commitizen - rev: v2.20.0 + rev: v3.22.0 hooks: - id: commitizen stages: [commit-msg] diff --git a/supabase_functions/__init__.py b/supabase_functions/__init__.py index 0f91950..99ecb86 100644 --- a/supabase_functions/__init__.py +++ b/supabase_functions/__init__.py @@ -11,15 +11,13 @@ @overload def create_client( url: str, headers: dict[str, str], *, is_async: Literal[True] -) -> AsyncFunctionsClient: - ... +) -> AsyncFunctionsClient: ... @overload def create_client( url: str, headers: dict[str, str], *, is_async: Literal[False] -) -> SyncFunctionsClient: - ... +) -> SyncFunctionsClient: ... def create_client(