I have defined my variable as follows;
timestamp_set = set([])
def doUpdate():
if len(timestamp_set) == 0:
tset = get3daysoffset()
timestamp_set = tset <---If this line removed no error warnings
In the above code block, it says timestamp_set variable in the if condition could not be resolved;
Unresolved reference 'timestamp_set' less... (⌘F1)
This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items
If I remove timestamp_set = tset line, pycharm didn't show any error warning.
What is wrong here?