Loading src/cli/entrypoint.py +5 −5 Changes for src/cli/entrypoint.py: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ from argparse import Namespace from enum import Enum import json from typing import Dict, List, Optional, Union from typing import Dict, List, Optional import urllib.parse # Modules libraries Loading Loading @@ -71,7 +71,7 @@ class Entrypoint: # Prepare credentials private_token: str = environments.value('gitlab_token') job_token: str = environments.value('ci_job_token') ssl_verify: Union[bool, str] = True ssl_verify: bool | str = True # Parse configuration files try: Loading Loading @@ -862,8 +862,8 @@ class Entrypoint: if issues_boards_objects: print(f'{Colors.BOLD} - Get issues boards to JSON: ' f'{Colors.RESET}', end='') issues_boards_list: List[Dict[str, Union[bool, str, List[Dict[str, str]], None]]] = [] issues_boards_list: List[Dict[str, bool | str | List[Dict[str, str]] | None]] = [] for board in issues_boards_objects: board_lists: List[Dict[str, str]] = [] for board_list in board.lists.list(get_all=True): Loading Loading @@ -909,7 +909,7 @@ class Entrypoint: if labels_objects: print(f'{Colors.BOLD} - Get labels to JSON: ' f'{Colors.RESET}', end='') labels_list: List[Dict[str, Union[str, None]]] = [] labels_list: List[Dict[str, str | None]] = [] for label in labels_objects: labels_list += [{ 'name': label.name, Loading src/features/gitlab.py +4 −4 Changes for src/features/gitlab.py: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ # Standard libraries from time import sleep from typing import Dict, List, Optional, Union from typing import Dict, List, Optional # Modules libraries from gitlab import Gitlab Loading Loading @@ -49,7 +49,7 @@ class GitLabFeature: url: str, private_token: str, job_token: str, ssl_verify: Union[bool, str] = True, ssl_verify: bool | str = True, dry_run: bool = False, ) -> None: Loading Loading @@ -831,7 +831,7 @@ class GitLabFeature: self, criteria: str, name: str, value: Union[bool, str], value: bool | str, ) -> Optional[bool]: # Variables Loading Loading @@ -964,7 +964,7 @@ class GitLabFeature: description: str, text_color: str, color: str, priority: Union[int, None], priority: int | None, ) -> ProjectLabel: # Create project label Loading src/package/settings.py +2 −2 Changes for src/package/settings.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ from configparser import ConfigParser from pathlib import Path from sys import stdout from typing import Optional, Union from typing import Optional # Components from ..prints.colors import Colors Loading @@ -14,7 +14,7 @@ from ..system.platform import Platform class Settings: # Types Value = Union[int, str] Value = int | str # Constants SETTINGS_FILE: str = 'settings.ini' Loading Loading
src/cli/entrypoint.py +5 −5 Changes for src/cli/entrypoint.py: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ from argparse import Namespace from enum import Enum import json from typing import Dict, List, Optional, Union from typing import Dict, List, Optional import urllib.parse # Modules libraries Loading Loading @@ -71,7 +71,7 @@ class Entrypoint: # Prepare credentials private_token: str = environments.value('gitlab_token') job_token: str = environments.value('ci_job_token') ssl_verify: Union[bool, str] = True ssl_verify: bool | str = True # Parse configuration files try: Loading Loading @@ -862,8 +862,8 @@ class Entrypoint: if issues_boards_objects: print(f'{Colors.BOLD} - Get issues boards to JSON: ' f'{Colors.RESET}', end='') issues_boards_list: List[Dict[str, Union[bool, str, List[Dict[str, str]], None]]] = [] issues_boards_list: List[Dict[str, bool | str | List[Dict[str, str]] | None]] = [] for board in issues_boards_objects: board_lists: List[Dict[str, str]] = [] for board_list in board.lists.list(get_all=True): Loading Loading @@ -909,7 +909,7 @@ class Entrypoint: if labels_objects: print(f'{Colors.BOLD} - Get labels to JSON: ' f'{Colors.RESET}', end='') labels_list: List[Dict[str, Union[str, None]]] = [] labels_list: List[Dict[str, str | None]] = [] for label in labels_objects: labels_list += [{ 'name': label.name, Loading
src/features/gitlab.py +4 −4 Changes for src/features/gitlab.py: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ # Standard libraries from time import sleep from typing import Dict, List, Optional, Union from typing import Dict, List, Optional # Modules libraries from gitlab import Gitlab Loading Loading @@ -49,7 +49,7 @@ class GitLabFeature: url: str, private_token: str, job_token: str, ssl_verify: Union[bool, str] = True, ssl_verify: bool | str = True, dry_run: bool = False, ) -> None: Loading Loading @@ -831,7 +831,7 @@ class GitLabFeature: self, criteria: str, name: str, value: Union[bool, str], value: bool | str, ) -> Optional[bool]: # Variables Loading Loading @@ -964,7 +964,7 @@ class GitLabFeature: description: str, text_color: str, color: str, priority: Union[int, None], priority: int | None, ) -> ProjectLabel: # Create project label Loading
src/package/settings.py +2 −2 Changes for src/package/settings.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ from configparser import ConfigParser from pathlib import Path from sys import stdout from typing import Optional, Union from typing import Optional # Components from ..prints.colors import Colors Loading @@ -14,7 +14,7 @@ from ..system.platform import Platform class Settings: # Types Value = Union[int, str] Value = int | str # Constants SETTINGS_FILE: str = 'settings.ini' Loading