CodeQL library for Python
codeql/python-all 2.2.1-dev (changelog, source)
Search

Module Pydantic::BaseModel

Provides models for pydantic.BaseModel subclasses (a pydantic model).

See https://pydantic-docs.helpmanual.io/usage/models/.

Import path

import semmle.python.frameworks.Pydantic

Predicates

instance

Gets a reference to an instance of a pydantic.BaseModel subclass.

subclassRef

Gets a reference to a pydantic.BaseModel subclass (a pydantic model).

Classes

InstanceSource

A source of instances of pydantic.BaseModel subclasses, extend this class to model new instances.