Skip to content

Pycharm invalid type argument #1063

@changja88

Description

@changja88

There is a bug in PyCharm with Pydantic's type checking.
In the code below, PyCharm is displaying an "invalid type argument" warning for PositiveInt.
This issue seems to have occurred after updating to Python version 3.13.3.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
Also, gif movies are recommended.

Environments (please complete the following information):

  • IDE: 2025.1.1.1
  • OS: macOS 15.5.0
  • Pydantic Version : 2.33.2
  • Plugin version 0.4.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions