Doctor
Doctor
I ran some tests, while majority of time is spent on checking if password is valid: ```py In [4]: %timeit hashlib.pbkdf2_hmac("sha256", b"abcde", b"abcde", 600_000) 153 ms ± 665 µs per...
@aperezlillo I don't think you really can address the issue without compromising some of the security - if it's easier to validate password hash then it would be easier to...
@Andrew-Chen-Wang Majority of the time - yes, but as a related issue JWT decoding/encoding could be optimized, it's even mentioned in pyjwt documentation.
While this may not really change the situation when password hashing/checking is required (i.e. during first login), it would optimize refreshing the JWT, which happens more often.
Try using `sqlalchemy.func.gen_random_uuid()` 🤔
Simply deleting init from a class seems like a hack 🤔, it's not a huge issue but I think it's something that pytest should probably support
@RonnyPfannschmidt It's a way for defining an interface for child test classes (I want to parametrize a bunch of tests that way) and type check them that way, it's just...
Honestly I could look into parametrized fixtures instead but classes seemed more explicit to me atm 🤔
Implementation wise I think you could either import `typing._no_init_or_replace_init` and check if `SomeClass.__init__` is that, or just subclass protocol and get it's init: ```py from typing import Protocol class A(Protocol):...
@benjaoming I think this is really needed, a lot of python projects use typehints + a type checker nowadays, without types mypy would constantly complain about using untyped django-money objects.