-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88a760d
commit 2a5fd3b
Showing
4 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from server.types.compute_types import ComputeTypes as ComputeTypes | ||
from server.types.devices import Devices as Devices | ||
from server.types.languages import Languages as Languages | ||
from server.types.state import AppState as AppState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
from litestar.datastructures import State | ||
|
||
from server.features.language_detector import LanguageDetector | ||
from server.features.translator import Translator | ||
|
||
|
||
class AppState(State): | ||
""" | ||
Summary | ||
------- | ||
the Litestar application state that will be injected into the routers | ||
Attributes | ||
---------- | ||
language_detector (LanguageDetector) : the language detector | ||
translator (Translator) : the translator | ||
""" | ||
|
||
language_detector: LanguageDetector | ||
translator: Translator | ||
from litestar.datastructures import State | ||
|
||
from server.features.language_detector import LanguageDetector | ||
from server.features.translator import Translator | ||
|
||
|
||
class AppState(State): | ||
""" | ||
Summary | ||
------- | ||
the Litestar application state that will be injected into the routers | ||
Attributes | ||
---------- | ||
language_detector (LanguageDetector) : the language detector | ||
translator (Translator) : the translator | ||
""" | ||
|
||
language_detector: LanguageDetector | ||
translator: Translator |