Pycharm send warning for no member existing in class

Pycharm Python Lint does not give warning for incorrect class members. It continues running my code, I have productName member below, not productNameTest.

Pycharm Settings --> Misspelling Warnings is enabled on desktop, however if member "is spelled correctly" but doesn't exist in class, no warning is issued.

How can we setup Pycharm to send warning for no member?

Product Model:

class ProductModel:
    productId: int
    productName: str
class ProductService: def __init__(self, productModel: ProductModel): self.productModel= productModel def getProductModel(self, curveData): self.productModel.productNameTest = "ABCD" # productNameTest is not a member and should give warning


Please sign in to leave a comment.