Skip to content

Commit

Permalink
fix(quality): fix some type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Sep 2, 2024
1 parent ce9c80c commit 246d285
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion qgis_deployment_toolbelt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def set_default_subparser(
# ############################################################################
# ########## MAIN ################
# ################################
def main(in_args: list[str] = None):
def main(in_args: list[str] | None = None):
"""Main CLI entrypoint.
Args:
Expand Down
2 changes: 1 addition & 1 deletion qgis_deployment_toolbelt/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
class SplashScreenBadDimensions(Exception):
"""When splash screen image does not comply with recomended dimensions."""

def __init__(self, image_filepath: Path, profile_name: str = None):
def __init__(self, image_filepath: Path, profile_name: str | None = None):
"""Initialization method.
Args:
Expand Down
14 changes: 0 additions & 14 deletions qgis_deployment_toolbelt/utils/ini_parser_with_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,3 @@ def get_initial_file_path(self) -> Path | None:
if self.initial_file_path is not None:
return Path(self.initial_file_path)
return None


# #############################################################################
# ##### Stand alone program ########
# ##################################

if __name__ == "__main__":
"""Standalone execution."""
# Exemple d'utilisation
# Exemple d'utilisation
config = CustomConfigParser()
config.read(["votre_fichier1.ini", "votre_fichier2.ini"])

print("Chemins des fichiers INI:", config.get_file_paths())

0 comments on commit 246d285

Please sign in to comment.