StackGuardian/tirith

🚀 Add Type Annotations

Ouverte

#180 ouverte le 21 sept. 2024

 (5 commentaires) (0 réaction) (1 personne assignée)Python (41 forks)auto 404
enhancementgood first issuehacktoberfest

Métriques du dépôt

Stars
 (168 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Issue: Several functions lack type annotations. Adding type hints can improve code readability and help with static type checking.

Solution: Go through the handler.py of all providers ( infracost, json, kubernetes, sg_workflow, terraform_plan ) and add type hints to functions .

Example:

def _get_exp_attribute(split_expressions: List[str], input_data: dict) -> List[Any]:

Guide contributeur