Skip to content

Conversation

YassinNouh21
Copy link
Contributor

Add note about mypy plugin configuration for --disallow-any-explicit

Change Summary

Added documentation explaining how to configure the Pydantic mypy plugin when using the --disallow-any-explicit mypy setting. This change helps users understand why they might see "Explicit Any not allowed" errors and how to resolve them.

Related issue number

fix #9373

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@github-actions github-actions bot added documentation relnotes-fix Used for bugfixes. labels Jun 25, 2024
Copy link

codspeed-hq bot commented Jun 25, 2024

CodSpeed Performance Report

Merging #9759 will not alter performance

Comparing YassinNouh21:add-mypy-plugin-docs (a4c7a14) with main (bd4bc1a)

Summary

✅ 13 untouched benchmarks

@YassinNouh21 YassinNouh21 changed the title docs: add note about mypy plugin configuration for --disallow-any-exp… docs: Add note about mypy plugin configuration for --disallow-any-explicit Jun 25, 2024
@sydney-runkle sydney-runkle removed the relnotes-fix Used for bugfixes. label Jun 26, 2024
@sydney-runkle
Copy link
Contributor

Currently blocked by pdm-project/pdm#2974, but we can get this across the line when that gets resolved and CI is fixed 👍

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This explanation looks great, tysm!

@sydney-runkle sydney-runkle enabled auto-merge (squash) June 26, 2024 12:14
@sydney-runkle sydney-runkle merged commit 1c33b03 into pydantic:main Jun 26, 2024
@YassinNouh21 YassinNouh21 deleted the add-mypy-plugin-docs branch June 26, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypy "Explicit "Any" is not allowed" error when extending BaseModel
2 participants