in order adapt some code I find myself looking for the appropriate type in my python code. Is there a way to avoid this or do this faster?
Consider the following code for example:
def my_function(my_list)
for my_entry in [entry for entry in my list if ...]
my_entry in this case is a namedTuple, but I have to look where my_function is used and look up the "invocation"-chain in order to know that my_list is a list of namedTuples. Is there a better solution? I am used to statically typed languages.
Just to make it clear, I am not necessary looking for type hints, but for good solution.