Yuri Pimenov

Results 33 comments of Yuri Pimenov

I think performance doesn't matter because reflection can't be fast per se. Can you please at least make it throw an exception if you can't fix it right now because...

Is there a chance php core developers will fix this reflection issue in an upcoming release? Are they aware?

Tests: ``` self.client = TestAsyncClient(v1) response = await self.client.get('/my', dict(updated_since=dt(2024, 1, 1, 0, 0, 0))) ``` urls.py: ``` @v1.get("/my") async def get(request, updated_since: datetime = None): print(updated_since) ``` updated_since is...

Fixed bug in example

I'm not sure this is all, in my case I needed to add one more line: MyModel._collection = None only after that it raised exceptions on unique constraint violations.

Now it looks like that: ``` @classmethod def clear_mongonengine_caches(cls): QuerySet._reset_already_indexed() import inspect for name, obj in inspect.getmembers(sys.modules[cls.__module__], inspect.isclass): from mongoengine.base import TopLevelDocumentMetaclass if hasattr(obj, '__class__') and issubclass(obj.__class__, TopLevelDocumentMetaclass): obj._collection =...

I've checked out the "dev" branch and got so many new issues in existing code I had no time to fix. I'll send you my testcase classes by email.