diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a266eb..6826735 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.12 - name: Install dependencies run: | diff --git a/analyzer/utils/permissions.py b/analyzer/utils/permissions.py index cb8712d..ec7cc8d 100644 --- a/analyzer/utils/permissions.py +++ b/analyzer/utils/permissions.py @@ -1,7 +1,7 @@ import os import stat from pathlib import Path -from typing import Set +from typing import Set, Union from pydantic import BaseModel, constr @@ -43,5 +43,5 @@ def generate_full_write_combination() -> Set[PermissionType]: return full_write_combination -def get_file_permissions(file_path: Path | str) -> PermissionType: +def get_file_permissions(file_path: Union[Path, str]) -> PermissionType: return PermissionType(permission=stat.filemode(os.stat(file_path).st_mode)[1:])