Open shahar-medigate opened 1 year ago
It would be nice if you ensure that using subclasses of Info
is supported. Our use case is having our own custom class to have better types on the context
by default:
class MyInfo(Info[MyCtx[TDetails], Any], Generic[TDetails]):
...
And then we use info: MyInfo[SomeDetails]
. (Would be nice to be able to use an alias here instead of inheriting as we don't really have instances of MyInfo
, but AFAIK it is not supported by python typecheckers.)
When importing strawberry with all waring enabled (-Wall) you get
Describe the Bug
While all warnings are enabled and importing strawberry a warning is raised
System Information
Upvote & Fund