@@ -88,7 +88,7 @@ def parse_resource_id(rid: str) -> Mapping[str, Union[str, int]]:
8888 result ["last_child_num" ] = count + 1 if isinstance (count , int ) else None
8989 final_result = _populate_alternate_kwargs (result )
9090 else :
91- final_result = result = dict ( name = rid )
91+ final_result = result = { " name" : rid }
9292 return {key : value for key , value in final_result .items () if value is not None }
9393
9494
@@ -138,7 +138,7 @@ def _get_parents_from_parts(kwargs: MutableMapping[str, Union[None, str, int]])
138138 return kwargs
139139
140140
141- def resource_id (** kwargs : Optional [str ]) -> str :
141+ def resource_id (** kwargs : Optional [str ]) -> str : # pylint: disable=docstring-keyword-should-match-keyword-only
142142 """Create a valid resource id string from the given parts.
143143
144144 This method builds the resource id from the left until the next required id parameter
@@ -184,7 +184,7 @@ def is_valid_resource_id(rid: str, exception_type: Optional[Type[BaseException]]
184184 :param rid: The resource id being validated.
185185 :type rid: str
186186 :param exception_type: Raises this Exception if invalid.
187- :type exception_type: :class:` Exception`
187+ :type exception_type: Exception
188188 :returns: A boolean describing whether the id is valid.
189189 :rtype: bool
190190 """
@@ -205,7 +205,7 @@ def is_valid_resource_name(rname: str, exception_type: Optional[Type[BaseExcepti
205205 :param rname: The resource name being validated.
206206 :type rname: str
207207 :param exception_type: Raises this Exception if invalid.
208- :type exception_type: :class:` Exception`
208+ :type exception_type: Exception
209209 :returns: A boolean describing whether the name is valid.
210210 :rtype: bool
211211 """
0 commit comments