Open afuetterer opened 1 week ago
Hm. This should work, and there's actually a test for this: https://github.com/provinzkraut/unasyncd/blob/58b80b7fe9c17d42155e015794e3dbcff0ce8b40/test/test_tree_transformer.py#L984
Can you try with the fully qualified name for the replacements?
Thanks, will do.
Okay, thanks. Using the fully qualified name solved the issue.
Reopening this because I think it's still a bug and should work with the simple replacement as well. I'll check it out when I have the time
Alright, sure thing.
Hi there, this is related to #15.
I ran into another issue, when using the project.
Let's say I have the same set up: I want to translate the async client to a client, as well as the unit tests.
Let's say I have a fixture for both clients in
conftest.py
, and use the clients in test functions.A minimal example:
When I run
unasynd
I getI have this add_replacements config
The import in the
if TYPE_CHECKING
block is not recognized, I guess?