I came across a Django model like this:
class Car(models.Model):
type = CharField()
...
However, pylint does not issue any warnings about redefining the built-in function type. It is only when I move it out of the class to the global scope pylint warns about this, but not within the class. Is this the expected behavior? If so, how can I override it to show warnings within classes or functions as well?
VSCode 1.61.0
Ubuntu 20.04
Python 3.8.10