Steve Dignam

Results 174 comments of Steve Dignam

I think I'm hitting this issue when trying to type an overloaded `__new__` in a base class My attempt overloading `__new__` to match up with the untyped source: ```python from...

Should be all set -- I really need to automate the releases lol

yeah makes sense to add to the readme!

Interesting, didn’t realize code search was disabled. is there an easy way to mark it as not a fork? maybe sourcegraph has it indexed?

Do you have some example code, might be able to figure something out 👀

hmm would something like this work? Note the generic passed to the `BaseUserManager` ```python class CustomUserManager(BaseUserManager["User"]): def create_user(self, email, password, **extra_fields): if not email: raise ValueError(_("The Email must be set"))...

[Another example](https://github.com/recipeyak/recipeyak/blob/d0840c6f5e06807bc263acb2c6fde665647bb30a/backend/recipeyak/models/invite.py#L15-L42) ```python class InviteManager(models.Manager["Invite"]): def create_invite( self, email: str, team: Team, level: str, creator: User ) -> Invite: user = User.objects.filter(email=email).first() if not user: user = User.objects.create_user(email=email) m =...

yeah I'm down for adding it, I used npm because it was easiest to distribute binaries (all the npm does is run a install script which downloads the binaries from...

Thanks for the thorough write up! So the advantage with the outlined above approach vs the one in the docs is that you end up with a table that has...