@@ -499,14 +499,14 @@ def get_cache_key(*args, **kwargs):
499499 # Convert unhashable types to hashable forms
500500 hashable_args = []
501501 for k , v in bound_args .arguments .items ():
502- if k not in ["interaction" ]: # Removed "self" from exclusion list
502+ if k not in ["interaction" ]: # Removed "self" from the exclusion list
503503 # For the self-parameter, use its id as part of the key
504504 if k == "self" :
505505 hashable_args .append (id (v ))
506506 # if we have a .name element, use this as key instead
507507 elif hasattr (v , "name" ) and not isinstance (v , (str , bytes )):
508508 hashable_args .append (("name" , getattr (v , "name" , None )))
509- # Convert lists to tuples, and handle nested lists
509+ # Convert lists to tuples and handle nested lists
510510 elif isinstance (v , list ):
511511 hashable_args .append (tuple (tuple (x ) if isinstance (x , list ) else x for x in v ))
512512 else :
@@ -608,7 +608,7 @@ async def _get_lock(cache_key) -> asyncio.Lock:
608608 # Fast path
609609 lock = locks .get (cache_key )
610610 if lock is None :
611- # Create lazily; small race is fine (we only need mutual exclusion, not singletons)
611+ # Create lazily; a small race is fine (we only need mutual exclusion, not singletons)
612612 lock = asyncio .Lock ()
613613 locks [cache_key ] = lock
614614 return lock
@@ -958,7 +958,7 @@ def deep_merge(dict1, dict2):
958958
959959
960960def hash_password (password : str ) -> str :
961- # Generate an 11 character alphanumeric string
961+ # Generate an 11- character alphanumeric string
962962 key = '' .join (secrets .choice (string .ascii_letters + string .digits ) for _ in range (11 ))
963963
964964 # Create a 32-byte-digest using the "Blake2b" hash algorithm
@@ -1115,7 +1115,7 @@ def process_pattern(_next, data, search, depth, debug, **kwargs):
11151115class YAMLError (Exception ):
11161116 """
11171117
1118- The `YAMLError` class is an exception class that is raised when there is an error encountered while parsing or scanning a YAML file.
1118+ The `YAMLError` class is an exception class raised when there is an error encountered while parsing or scanning a YAML file.
11191119
11201120 **Methods:**
11211121
0 commit comments