Module implementing a node visitor to check for pydantic related issues.
None |
PydanticVisitor | Class implementing a node visitor to check for pydantic related issues. |
None |
Class implementing a node visitor to check for pydantic related issues.
None |
None |
PydanticVisitor | Constructor |
__checkForPyd001 | Private method to check positional argument for Field default argument. |
__checkForPyd002 | Private method to check non-annotated attribute inside Pydantic model. |
__checkForPyd003 | Private method to check unecessary Field call to specify a default value. |
__checkForPyd004 | Private method to check for a default argument specified in annotated. |
__checkForPyd005 | Private method to check for a field name overriding the annotation. |
__checkForPyd006 | Private method to check for duplicate field names. |
__checkForPyd010 | Private method to check for the use of `__pydantic_config__`. |
__currentClass | Private method returning the current class type as recorded by the __enterClass method. |
__enterClass | Private method to record class type when entering a class definition. |
__leaveClass | Private method to remove the data recorded by the __enterClass method. |
visit_AnnAssign | Public method to process annotated assignment. |
visit_ClassDef | Public method to process class definitions. |
None |
Constructor
Private method to check positional argument for Field default argument.
Private method to check non-annotated attribute inside Pydantic model.
Private method to check unecessary Field call to specify a default value.
Private method to check for a default argument specified in annotated.
Private method to check for a field name overriding the annotation.
Private method to check for duplicate field names.
Private method to check for the use of `__pydantic_config__`.
Private method returning the current class type as recorded by the __enterClass method.
Private method to record class type when entering a class definition.
Private method to remove the data recorded by the __enterClass method.
Public method to process annotated assignment.
Public method to process class definitions.