diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 76fdb9d605..357df7b50a 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -244,7 +244,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: stefanzweifel/git-auto-commit-action@v4 + - uses: stefanzweifel/git-auto-commit-action@v5 with: file_pattern: '*/version.json' commit_message: Update version to ${{ needs.fetch-versions.outputs.NEW_VERSION }} diff --git a/.github/workflows/check-config-pyi.yml b/.github/workflows/check-config-pyi.yml index abe01e895b..d39702ac40 100644 --- a/.github/workflows/check-config-pyi.yml +++ b/.github/workflows/check-config-pyi.yml @@ -18,6 +18,6 @@ jobs: python-version: '3.11' - name: Update config.pyi run: python taipy/config/stubs/generate_pyi.py - - uses: stefanzweifel/git-auto-commit-action@v4 + - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "Update config.pyi" diff --git a/tools/gui/generate_pyi.py b/tools/gui/generate_pyi.py index b394bc187c..5790a54bfd 100644 --- a/tools/gui/generate_pyi.py +++ b/tools/gui/generate_pyi.py @@ -13,7 +13,7 @@ import os import re import sys -from typing import Any, List +from typing import Any, Dict, List from markdownify import markdownify @@ -79,7 +79,7 @@ file.write("from ._element import _Block, _Control, _Element\n") -def resolve_inherit(name: str, properties, inherits, viselements) -> List[dict[str, Any]]: +def resolve_inherit(name: str, properties, inherits, viselements) -> List[Dict[str, Any]]: if not inherits: return properties for inherit_name in inherits: @@ -137,7 +137,7 @@ def format_as_parameter(property): return f"{property['name']}{type}{default_value}" -def build_doc(name: str, desc: dict[str, Any]): +def build_doc(name: str, desc: Dict[str, Any]): if "doc" not in desc: return "" doc = str(desc["doc"]) @@ -166,7 +166,7 @@ def generate_elements(category: str, base_class: str): name = element[0] desc = element[1] properties_doc = "" - property_list: List[dict[str, Any]] = [] + property_list: List[Dict[str, Any]] = [] property_names: List[str] = [] properties = resolve_inherit(name, desc["properties"], desc.get("inherits", None), viselements) # Remove hidden properties and indexed properties (TODO?)