At a module level, is MY_VAR_C an anti-pattern in Python 3.8+?
MY_VAR_A = "my_var_a"
MY_VAR_B = "my_var_b"
MY_VAR_C: str = MY_VAR_A + MY_VAR_B
At a module level, is MY_VAR_C an anti-pattern in Python 3.8+?
MY_VAR_A = "my_var_a"
MY_VAR_B = "my_var_b"
MY_VAR_C: str = MY_VAR_A + MY_VAR_B
It is cheap and only executes once. So if it makes it easier to read it is a good trade off.