@@ -35,7 +35,7 @@ class AlignerrProjectBuilder:
3535 def __init__ (self , client : "Client" ):
3636 self .client = client
3737 self ._alignerr_rates : dict [str , ProjectRateInput ] = {}
38- self ._customer_rate : ProjectRateInput = None
38+ self ._customer_rate : Optional [ ProjectRateInput ] = None
3939 self ._domains : list [ProjectDomain ] = []
4040 self ._enhanced_resource_tags : list [EnhancedResourceTag ] = []
4141 self ._project_owner_email : Optional [str ] = None
@@ -62,7 +62,7 @@ def set_alignerr_role_rate(
6262 raise ValueError (f"Role { role_name .value } not found" )
6363
6464 role_id = self .role_name_to_id [role_name .value ]
65- role_name = role_name .value
65+ role_name_str = role_name .value
6666
6767 # Convert datetime objects to ISO format strings
6868 effective_since_str = (
@@ -76,7 +76,7 @@ def set_alignerr_role_rate(
7676 else effective_until
7777 )
7878
79- self ._alignerr_rates [role_name ] = ProjectRateInput (
79+ self ._alignerr_rates [role_name_str ] = ProjectRateInput (
8080 rateForId = role_id ,
8181 isBillRate = False ,
8282 billingMode = billing_mode ,
@@ -221,7 +221,7 @@ def _create_resource_tags(self, alignerr_project: "AlignerrProject"):
221221 f"Setting enhanced resource tags: { [tag .text for tag in self ._enhanced_resource_tags ]} "
222222 )
223223 # Group tags by type and set them accordingly
224- tags_by_type = {}
224+ tags_by_type : dict [ ResourceTagType , list [ str ]] = {}
225225 for tag in self ._enhanced_resource_tags :
226226 tag_type = tag .type
227227 if tag_type not in tags_by_type :
0 commit comments