But I hope it's still useful for someone. I'm sorry for the lack of dedication, I'd submit thw PR, but I hate writing tests and whatnot and also not sure of the better way to fix that. Maybe _AsyncSynta圎rrorVisitor can help any? But I guess it's for the other way around i guess, this way it won't raise Synta圎rror, but i'm not sure if the newline issue will be resolved because _asyncify() itself adds some levels of indentation and it easily can go messy. If the autoawait's on, feed the compile_command() with the code wrapped with the _asyncify(). I don't think it's a good solution, but maybe I'm also overcomplicating things. if it is, could ignore that specific Synta圎rror case. Should check if the autoawait is turned on. In my fork I just muted that Synta圎rror but it's certainly not the brightest way to fix that, lol. It runs check_complete on each line ending, which, in turn, executes compile_command, and the latter one raises a Synta圎rror because 'async with' is used outside of the async function. Let me know if that's enough to at least get you started.Īsync with aiohttp.ClientSession() as session:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |