I have the following class:
class MyClass:
my_attribute1: str
my_attribute2: int
def __init__(self):
self.my_attribute1 = "value"
self.my_attribute2 = "10" # got warning Expected type 'int', got 'str'... so it works as expected
self.my_non_hinted_attribute = 100 # no warnings at all.
The non type hinted attribute could be a simple typo, so it seems I have no guarding warning for my typos... Using PyCharm with default settings.
Question
How can I achieve, that I get warning in case I make a typo in self.attribute_name?