Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downgrade pydantic in dev env (#355)
### Description This PR makes type-checking more consistent for local development. I have had an annoying issue with the type-checker reporting errors that weren't appearing in CI. Initially, I thought this was a problem with mypy, but actually the problem was that I have been using Pydantic 2, but the types in the codebase are only compatible with Pydantic 1. Specifically, I was getting a lot of errors for properties like `extra_detail` that don't have a default value: ``` class ValidationIssue(ABC, BaseModel): """The abstract base ValidationIssue class that the specific ValidationIssue classes are built from.""" message: str context: Optional[ValidationContext] = None extra_detail: Optional[str] ``` ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] This PR includes tests, or tests are not required/relevant for this PR - [x] I have run `changie new` to [create a changelog entry](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md#adding-a-changelog-entry) --------- Co-authored-by: Courtney Holcomb <[email protected]>
- Loading branch information