admin管理员组

文章数量:1129171

I have a specific warning message that I want to avoid.

Type "IntField" is not assignable to declared type "int"

I want my IDE to stop highlighting this error message. But it looks like I can only deactivate general warning (like AssignementTypeWarning). But if I do that I will not see others AssignementTypeWarning, I just want to hide this one ! Is there a way to do it ?

Example:

from mongoengine import Document, fields, EmbeddedDocument



class AppConfiguration(EmbeddedDocument):
    max_history_length: int = fields.IntField(db_field='maxHistoryLength')

本文标签: pythonDeactivate a specific warning on a visual studio code projectStack Overflow