strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Add ability to use strawberry mypy plugin with pydantic without pydantic mypy plugin

Open benzolium opened this issue 1 year ago • 3 comments

Currently it's not possible not to use pydantic mypy plugin while using strawberry mypy plugin and experimental pydantic types.

It could be useful for users who do not want to enable pydantic plugin.

Feature Request Type

  • [x] New behavior

Description

Add ability to use strawberry mypy plugin with pydantic without pydantic mypy plugin

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

benzolium avatar Aug 04 '22 13:08 benzolium

@benzolium can you show me what happens when you only enable the strawberry plugin? does it crash?

patrick91 avatar Oct 20 '22 18:10 patrick91

@patrick91 I'm getting:

error: Pydantic plugin not installed, please add pydantic.mypy your mypy.ini plugins

for every line with @strawberry.experimental.pydantic.type

benzolium avatar Oct 21 '22 04:10 benzolium

This is still a running issue...has anyone found a workaround to suppress the error in the meantime?

nevoodoo avatar Feb 17 '24 08:02 nevoodoo