Given the following dictionary comprehension
{key: func(key) for key in range(5) if func(key) is not None}
Can I somehow annotate this func(key)
so I won't have βto calculate it twice? thanks in advance
Given the following dictionary comprehension
{key: func(key) for key in range(5) if func(key) is not None}
Can I somehow annotate this func(key)
so I won't have βto calculate it twice? thanks in advance