I have a dataclass set up like this:
from dataclasses import dataclass, field
from typing import List
@dataclass
class stats:
target_list: List[None] = field(default_factory=list)
When I try to compare the contents of the list like so:
if stats.target_list == None:
pass
I get AttributeError: type object 'stats' has no attribute 'target_list'
How can I fix this issue? Thanks