mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-08 02:49:17 -05:00
[Python] Fix: Remove global event loop setters everywhere (#1452)
* feat: factor out async to sync * feat: remove global event loop setter in workflow listener * fix: rm more global loop sets * fix: more loop sets * fix: more * fix: more * fix: rm one more * fix: stream from thread * fix: dispatcher * fix: make tests have independent loop scopes (woohoo!) * feat: use default loop scope * fix: try adding back tests * Revert "fix: try adding back tests" This reverts commit bed34a9bae539650e4fe32e0518aa9d1c5c0af5c. * fix: rm dead code * fix: remove redundant `_utils` * fix: add typing to client stubs + regenerate * fix: create more clients lazily * fix: print cruft * chore: version * fix: lint
This commit is contained in:
@@ -105,6 +105,9 @@ find ./hatchet_sdk/contracts -type f -name '*_grpc.py' -print0 | xargs -0 sed -i
|
||||
find ./hatchet_sdk/contracts -type f -name '*_grpc.py' -print0 | xargs -0 sed -i '' 's/import events_pb2 as events__pb2/from hatchet_sdk.contracts import events_pb2 as events__pb2/g'
|
||||
find ./hatchet_sdk/contracts -type f -name '*_grpc.py' -print0 | xargs -0 sed -i '' 's/import workflows_pb2 as workflows__pb2/from hatchet_sdk.contracts import workflows_pb2 as workflows__pb2/g'
|
||||
|
||||
find ./hatchet_sdk/contracts -type f -name '*_grpc.py' -print0 | xargs -0 sed -i '' 's/def __init__(self, channel):/def __init__(self, channel: grpc.Channel | grpc.aio.Channel) -> None:/g'
|
||||
|
||||
|
||||
# ensure that pre-commit is applied without errors
|
||||
./lint.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user