skbel
skbel copied to clipboard
refactor: removing list casting for dict.keys()
This PR removes unnecessary list() calls around dictionary .keys() in several places within transport_map.py. Using list() in expressions like key in list(some_dict.keys()) is redundant, as dict_keys objects already support membership checks efficiently.
This change leads to slightly more efficient code by avoiding temporary list allocations, which, while not significant due to the small number of elements, contributes to cleaner and more idiomatic Python code.