# get_pydantic_major_version

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/utils/pydantic/get_pydantic_major_version)

DEPRECATED - Get the major version of Pydantic.

Use `PYDANTIC_VERSION.major` instead.

## Signature

```python
get_pydantic_major_version() -> int
```

## Returns

`int`

The major version of Pydantic.

## ⚠️ Deprecated

Use PYDANTIC_VERSION.major instead.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f0c5a28fa05adcda89aebcb449d897245ab21fa4/libs/core/langchain_core/utils/pydantic.py#L54)