pydantic-pycharm-plugin icon indicating copy to clipboard operation
pydantic-pycharm-plugin copied to clipboard

PyCharm plugin for pydantic. This plugin provides autocompletion, inspection, type-checking, inserting unfilled argument, and more.

Results 109 pydantic-pycharm-plugin issues
Sort by recently updated
recently updated
newest added

**Describe the bug** PyCharm shows an "unexpected argument" warning for this snippet: ```python class M(p.BaseModel): a: int = 1 def test_(): assert M.__class__.parse_obj(a=2) ``` **To Reproduce** Steps to reproduce the...

**Is your feature request related to a problem? Please describe.** ```py import pydantic as p class M(p.BaseModel): f: str = p.Field(default_factory=str) def test_(): assert M( # Run "Insert all arguments"...

bug

**Is your feature request related to a problem? Please describe.** When PyCharm detects access to a missing field in a class, it offers to add this field. For a pydantic...

enhancement
polar

**Describe the bug** Deleting project in CLI while Pycharm is open produces error. Even if pydantic is not even part of the codebase. **To Reproduce** Steps to reproduce the behavior:...

bug

And misc changes from the plugin template

Can't correctly identify the type using '|' ![image](https://user-images.githubusercontent.com/81189712/182170148-1cd671b7-dd34-4665-8d11-1153a5e876db.png)

**To Reproduce** ``` python class Test(BaseModel): name: Optional[str] = Field() def test_model() -> None: a = Test() print(a.name) # output None ``` **Expected behavior** No warning **Screenshots** ![image](https://user-images.githubusercontent.com/393376/164337096-8b77c687-8c7f-492c-bf55-9620bd68ae34.png) **Environments:** -...

bug

**Describe the bug** Pycharm keeps on throwing this _IDE Error Occured_ message. I've not seen this one before, I hope the following are helpful. **stacktrace.txt** ``` java.lang.Throwable: unable to get...

**Describe the bug** If you use the PyCharm-provided auto-completion in a model config, this produces a SyntaxError in the code as the import for `Extra` is missing. **To Reproduce** ```py...

enhancement
polar

**Is your feature request related to a problem? Please describe.** When I have a field validator, the field is referenced as a string. PyCharm misses that when renaming a field,...