Mike DePalatis
Mike DePalatis
I got burned by this one trying to use `pathlib.Path` as a type. Seeing as `pathlib` is seeing increased usage is there any way to have this type treated correctly?...
Since it's just a dataclass you can always define a `__post_init__` method to add whatever other attributes you want.
Here's an example: ```python import asyncio from dataclasses import dataclass from marshmallow_dataclass import class_schema @dataclass class Foo: bar: int baz: float async def main(): loop = asyncio.get_running_loop() loop.run_in_executor(None, lambda: class_schema(Foo)())...
This is specifically a problem with thread pool executors. Following [this post](https://superfastpython.com/threadpoolexecutor-thread-local/) if I bootstrap `marshmallow_dataclass._RECURSION_GUARD.seen_classes` this error goes away. This remains a serious limitation and I'm going to have...
I think using `threading.local` is fine (and more generally applicable than `contextvars`). I don't work with `threading.local` much but I think you are correct that moving where the initialization happens...
It looks like the fix in #191 didn't actually do the trick. I still get the same issue with the 8.5.7 release. I think whatever solution is found to work...
In the meantime could you please reopen this issue until it has been resolved?
I just hit this. I was trying to open an output file in binary mode and got an error message saying ``` TypeError: write() argument must be str, not bytes...
What I had in mind for a simple ZMQ-based task runner is a service that accepts a JSON string telling it what script to run and with what command-line arguments,...
> I don't want a polling mechanism for this, the task runner should be responsible for indicating when a job is finished How is this handled now with Celery? I...