Skip to content

Commit e5cc8b7

Browse files
committed
style: fix some python lint error
1 parent 3dde67b commit e5cc8b7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
token: ${{ github.token }}
5555
filters: .github/file-filters.yml
5656

57-
# ------------------------------------------ All Linter ------------------------------------------
57+
# ------------------------------------------ All Linter ------------------------------------------
5858

5959
yaml-lint:
6060
if: needs.files-changed.outputs.yaml == 'true'
@@ -84,7 +84,6 @@ jobs:
8484
- name: "Linting: ruff format"
8585
run: "ruff format --check --diff ."
8686

87-
8887
markdown-lint:
8988
if: |
9089
needs.files-changed.outputs.documentation == 'true' ||
@@ -119,7 +118,6 @@ jobs:
119118
env:
120119
SHELLCHECK_OPTS: --exclude=SC2086 --exclude=SC2046 --exclude=SC2004 --exclude=SC2129
121120

122-
123121
documentation:
124122
defaults:
125123
run:
@@ -141,7 +139,7 @@ jobs:
141139
uses: actions/setup-node@v4
142140
with:
143141
node-version: 20
144-
cache: 'npm'
142+
cache: "npm"
145143
cache-dependency-path: docs/package-lock.json
146144
- name: "Install dependencies"
147145
run: npm install

tasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import sys
35
from pathlib import Path
46
from shutil import which
5-
from typing import Any, Union
7+
from typing import Any
68

79
from invoke import Context, task
810
from invoke.exceptions import UnexpectedExit
@@ -258,7 +260,7 @@ def generate_python_sdk(context: Context) -> None: # noqa: ARG001
258260

259261

260262
@task(name="generate-sdk-api-docs")
261-
def generate_sdk_api_docs(context: Context, output: Union[str, None] = None) -> None:
263+
def generate_sdk_api_docs(context: Context, output: str | None = None) -> None:
262264
"""Generate API documentation for the Python SDK."""
263265

264266
import operator

0 commit comments

Comments
 (0)