Skip to content

Commit

Permalink
Fix circular import (#385)(patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Feb 2, 2024
1 parent a1bb4f1 commit f1701a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trailblazer/server/wiring.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from trailblazer.containers import Container
import trailblazer.server.api
import trailblazer.cli.core

container = Container()


def setup_dependency_injection() -> Container:
import trailblazer.server.api
import trailblazer.cli.core

container.wire(modules=[trailblazer.server.api, trailblazer.cli.core])
return container

0 comments on commit f1701a3

Please sign in to comment.