We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302557a commit d74a856Copy full SHA for d74a856
2 files changed
AGENTS.md
@@ -57,6 +57,7 @@ src/
57
- Package `__init__.py` files contain brief package descriptions
58
- Central `constants.py` for shared constants with descriptive comments
59
- Type aliases defined at module level for clarity
60
+- Use Final[type] as type hint for all constants
61
62
#### Configuration
63
- All config uses Pydantic models extending `ConfigurationBase`
src/constants.py
@@ -2,6 +2,9 @@
2
3
from typing import Final
4
5
+# Use Final[type] as type hint for all constants to ensure that type checkers (Mypy etc.)
6
+# will be able to detect assignements to such constants.
7
+
8
# Minimal and maximal supported Llama Stack version
9
MINIMAL_SUPPORTED_LLAMA_STACK_VERSION: Final[str] = "0.2.17"
10
MAXIMAL_SUPPORTED_LLAMA_STACK_VERSION: Final[str] = "0.6.0"
0 commit comments