hydra-python 0.17.1__tar.gz → 0.17.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hydra_python-0.17.1 → hydra_python-0.17.2}/.gitignore +16 -25
- {hydra_python-0.17.1 → hydra_python-0.17.2}/PKG-INFO +9 -9
- {hydra_python-0.17.1 → hydra_python-0.17.2}/README.md +7 -7
- {hydra_python-0.17.1 → hydra_python-0.17.2}/build/main/digest.json +13 -13
- {hydra_python-0.17.1 → hydra_python-0.17.2}/pyproject.toml +2 -2
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/coder.py +2 -2
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/serde.py +2 -2
- {hydra_python-0.17.1 → hydra_python-0.17.2}/LICENSE +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/NOTICE +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/dsl/python/environment.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/dsl/python/names.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/dsl/python/syntax.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/dsl/python/utils.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/environment.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/language.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/names.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/pyproject.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/syntax.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/testing.py +0 -0
- {hydra_python-0.17.1 → hydra_python-0.17.2}/src/main/python/hydra/python/utils.py +0 -0
|
@@ -29,6 +29,7 @@ stack.yaml.lock
|
|
|
29
29
|
gradle.properties
|
|
30
30
|
/packages/hydra-java/build/
|
|
31
31
|
/heads/java/json-driver/build/
|
|
32
|
+
/heads/java/target-driver/build/
|
|
32
33
|
|
|
33
34
|
# IDEs
|
|
34
35
|
.bsp/
|
|
@@ -73,31 +74,21 @@ docs/reviews/
|
|
|
73
74
|
docs/work/
|
|
74
75
|
|
|
75
76
|
# Package distributions.
|
|
76
|
-
# dist/json/ is the source of truth (tracked).
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
#
|
|
80
|
-
#
|
|
81
|
-
#
|
|
82
|
-
#
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
dist/haskell/
|
|
91
|
-
dist/haskell/hydra-kernel/src/main/haskell/Hydra/Kernel.hs
|
|
92
|
-
dist/haskell/hydra-kernel/src/main/haskell/Hydra/Overlay/
|
|
93
|
-
# - hydra-kernel hand-written test bridge (overlaid from overlay/haskell/.../src/test/)
|
|
94
|
-
dist/haskell/hydra-kernel/src/test/haskell/Hydra/Test/TestEnv.hs
|
|
95
|
-
dist/haskell/hydra-kernel/src/test/haskell/Hydra/Test/DefaultImplGraph.hs
|
|
96
|
-
# - hydra-pg / hydra-typescript hand-written DSL helpers (overlaid from
|
|
97
|
-
# overlay/haskell/hydra-{pg,typescript}/; relocated to the
|
|
98
|
-
# Hydra.Overlay.Haskell.* namespace in #501/#556)
|
|
99
|
-
dist/haskell/hydra-pg/src/main/haskell/Hydra/Overlay/
|
|
100
|
-
dist/haskell/hydra-typescript/src/main/haskell/Hydra/Overlay/
|
|
77
|
+
# dist/json/ is the source of truth (tracked). All target-language trees,
|
|
78
|
+
# INCLUDING dist/haskell/ as of #376, are regenerated from dist/json/ and not
|
|
79
|
+
# checked in. dist/haskell/ was tracked from the 0.15 release through #376 to
|
|
80
|
+
# support bootstrapping from a fresh clone before the cold-clone seeder
|
|
81
|
+
# (heads/haskell/json-driver/) existed; that seeder now performs the same
|
|
82
|
+
# role by regenerating dist/haskell/ from the committed dist/json/ using only
|
|
83
|
+
# published Hackage coder packages — see bin/sync.sh's cold-start detection
|
|
84
|
+
# and heads/haskell/json-driver/bin/cold-seed-dist-haskell.sh. The former
|
|
85
|
+
# per-file overlay exceptions under dist/haskell/ (hydra umbrella,
|
|
86
|
+
# hydra-kernel hand-written runtime, hydra-pg/hydra-typescript DSL helpers)
|
|
87
|
+
# are subsumed by this blanket ignore; their canonical copies remain tracked
|
|
88
|
+
# under overlay/haskell/. (Hackage channel staging artifacts — the sdists and
|
|
89
|
+
# Haddock docs that prepare-release.sh / publish-hackage.sh assemble into
|
|
90
|
+
# dist/haskell/ — are likewise covered by this blanket ignore. #589.)
|
|
91
|
+
dist/haskell/
|
|
101
92
|
|
|
102
93
|
dist/clojure/
|
|
103
94
|
dist/common-lisp/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hydra-python
|
|
3
|
-
Version: 0.17.
|
|
3
|
+
Version: 0.17.2
|
|
4
4
|
Summary: Python support for Hydra
|
|
5
5
|
Project-URL: Homepage, https://github.com/CategoricalData/hydra
|
|
6
6
|
Project-URL: Repository, https://github.com/CategoricalData/hydra
|
|
@@ -9,7 +9,7 @@ License: Apache-2.0
|
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
License-File: NOTICE
|
|
11
11
|
Requires-Python: >=3.12
|
|
12
|
-
Requires-Dist: hydra-kernel==0.17.
|
|
12
|
+
Requires-Dist: hydra-kernel==0.17.2
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
15
|
# Hydra-Python
|
|
@@ -58,7 +58,7 @@ For comprehensive documentation about Hydra's architecture and usage, see:
|
|
|
58
58
|
- **[Code Organization](https://github.com/CategoricalData/hydra/wiki/Code-organization)** -
|
|
59
59
|
The `packages/`, `heads/`, `dist/` layout
|
|
60
60
|
- **[Testing](https://github.com/CategoricalData/hydra/wiki/Testing)** -
|
|
61
|
-
|
|
61
|
+
Hydra-kernel test suite documentation
|
|
62
62
|
- **[Developer Recipes](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/index.md)** -
|
|
63
63
|
Step-by-step guides
|
|
64
64
|
- **[Syncing Hydra-Python](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/syncing-python.md)** -
|
|
@@ -66,15 +66,15 @@ For comprehensive documentation about Hydra's architecture and usage, see:
|
|
|
66
66
|
|
|
67
67
|
## Testing
|
|
68
68
|
|
|
69
|
-
Hydra-Python has two types of tests: the **
|
|
69
|
+
Hydra-Python has two types of tests: the **hydra-kernel test suite** (shared across all Hydra implementations)
|
|
70
70
|
and **Python-specific tests**.
|
|
71
71
|
See the [Testing wiki page](https://github.com/CategoricalData/hydra/wiki/Testing)
|
|
72
72
|
for comprehensive documentation.
|
|
73
73
|
|
|
74
|
-
###
|
|
74
|
+
### Hydra-kernel test suite
|
|
75
75
|
|
|
76
|
-
The
|
|
77
|
-
**Passing all
|
|
76
|
+
The hydra-kernel test suite (`hydra.test.testSuite`) ensures parity across all Hydra implementations.
|
|
77
|
+
**Passing all hydra-kernel test suite cases is the criterion for a true Hydra implementation.**
|
|
78
78
|
|
|
79
79
|
To run all tests (from `heads/python/`):
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ To run all tests (from `heads/python/`):
|
|
|
82
82
|
cd heads/python && pytest
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
To run only the
|
|
85
|
+
To run only the hydra-kernel test suite:
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
88
|
cd heads/python && pytest src/test/python/test_suite_runner.py
|
|
@@ -100,7 +100,7 @@ The test suite is generated from Hydra DSL sources and includes:
|
|
|
100
100
|
### Python-specific tests
|
|
101
101
|
|
|
102
102
|
Python-specific tests validate implementation details and Python-specific functionality.
|
|
103
|
-
These are located in `heads/python/src/test/python/` alongside the
|
|
103
|
+
These are located in `heads/python/src/test/python/` alongside the hydra-kernel test suite runner.
|
|
104
104
|
|
|
105
105
|
To run a specific test file:
|
|
106
106
|
|
|
@@ -44,7 +44,7 @@ For comprehensive documentation about Hydra's architecture and usage, see:
|
|
|
44
44
|
- **[Code Organization](https://github.com/CategoricalData/hydra/wiki/Code-organization)** -
|
|
45
45
|
The `packages/`, `heads/`, `dist/` layout
|
|
46
46
|
- **[Testing](https://github.com/CategoricalData/hydra/wiki/Testing)** -
|
|
47
|
-
|
|
47
|
+
Hydra-kernel test suite documentation
|
|
48
48
|
- **[Developer Recipes](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/index.md)** -
|
|
49
49
|
Step-by-step guides
|
|
50
50
|
- **[Syncing Hydra-Python](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/syncing-python.md)** -
|
|
@@ -52,15 +52,15 @@ For comprehensive documentation about Hydra's architecture and usage, see:
|
|
|
52
52
|
|
|
53
53
|
## Testing
|
|
54
54
|
|
|
55
|
-
Hydra-Python has two types of tests: the **
|
|
55
|
+
Hydra-Python has two types of tests: the **hydra-kernel test suite** (shared across all Hydra implementations)
|
|
56
56
|
and **Python-specific tests**.
|
|
57
57
|
See the [Testing wiki page](https://github.com/CategoricalData/hydra/wiki/Testing)
|
|
58
58
|
for comprehensive documentation.
|
|
59
59
|
|
|
60
|
-
###
|
|
60
|
+
### Hydra-kernel test suite
|
|
61
61
|
|
|
62
|
-
The
|
|
63
|
-
**Passing all
|
|
62
|
+
The hydra-kernel test suite (`hydra.test.testSuite`) ensures parity across all Hydra implementations.
|
|
63
|
+
**Passing all hydra-kernel test suite cases is the criterion for a true Hydra implementation.**
|
|
64
64
|
|
|
65
65
|
To run all tests (from `heads/python/`):
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ To run all tests (from `heads/python/`):
|
|
|
68
68
|
cd heads/python && pytest
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
To run only the
|
|
71
|
+
To run only the hydra-kernel test suite:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
74
|
cd heads/python && pytest src/test/python/test_suite_runner.py
|
|
@@ -86,7 +86,7 @@ The test suite is generated from Hydra DSL sources and includes:
|
|
|
86
86
|
### Python-specific tests
|
|
87
87
|
|
|
88
88
|
Python-specific tests validate implementation details and Python-specific functionality.
|
|
89
|
-
These are located in `heads/python/src/test/python/` alongside the
|
|
89
|
+
These are located in `heads/python/src/test/python/` alongside the hydra-kernel test suite runner.
|
|
90
90
|
|
|
91
91
|
To run a specific test file:
|
|
92
92
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"digestFormatVersion": 1,
|
|
3
3
|
"moduleFormatVersion": 1,
|
|
4
|
-
"generator": "
|
|
4
|
+
"generator": "acdbe52b6acaa312",
|
|
5
5
|
"generation": {
|
|
6
|
-
"generatorId": "
|
|
6
|
+
"generatorId": "acdbe52b6acaa312",
|
|
7
7
|
"mode": "published",
|
|
8
|
-
"hydraVersion": "0.17.
|
|
9
|
-
"revision": "
|
|
10
|
-
"timestamp": "2026-07-
|
|
8
|
+
"hydraVersion": "0.17.1",
|
|
9
|
+
"revision": "b77ccd1486",
|
|
10
|
+
"timestamp": "2026-07-22T09:11:20Z",
|
|
11
11
|
"host": "python"
|
|
12
12
|
},
|
|
13
|
-
"selfHash": "
|
|
14
|
-
"depHash:hydra-kernel": "
|
|
13
|
+
"selfHash": "7de2bd54a1fc87f4f91271394e38496e77f67855b645dabbac79311a114c89e6",
|
|
14
|
+
"depHash:hydra-kernel": "f5d452d00985e9b5bd303c8f07989a8ec9f1f52be94021a38d9371537bf080dc",
|
|
15
15
|
"inputs": {
|
|
16
|
-
"hydra.python.coder": { "kind": "Other", "hash": "
|
|
16
|
+
"hydra.python.coder": { "kind": "Other", "hash": "8460dc7b2ef6cd295d292b1a619c26039512723f8fc0f022b3d8472ceda8ab85" },
|
|
17
17
|
"hydra.python.environment": { "kind": "Other", "hash": "e14b76188ef4da15c8f011740ed2751e9b55cd0e13f9d9e9d6917cb644526ac9" },
|
|
18
18
|
"hydra.python.language": { "kind": "Other", "hash": "78fb867a1d0fa6654f46f5d9fd72c2c5607d2934b7c7fbd5f5d830786b4ad91e" },
|
|
19
19
|
"hydra.python.names": { "kind": "Other", "hash": "85e048a96cf966e2280c6ed8f74d9d801d34e8a983e04de1ab3fb73e168d97f8" },
|
|
20
20
|
"hydra.python.pyproject": { "kind": "Other", "hash": "249512648b2b008db234ee348a72056d4d625cfeb0a80d8caacbda95002569a2" },
|
|
21
|
-
"hydra.python.serde": { "kind": "Other", "hash": "
|
|
21
|
+
"hydra.python.serde": { "kind": "Other", "hash": "fe6c5fe18dc197838e343643c3ddf497bad3ccd58573ff3dec6815deaa266d4a" },
|
|
22
22
|
"hydra.python.syntax": { "kind": "Other", "hash": "88a9154b48fd429f06efa0ba8981bdf12af3fed4de5a057b3304fadc623dbc19" },
|
|
23
23
|
"hydra.python.testing": { "kind": "Other", "hash": "624c33ec2714b57c2d5917c03b590088c210dd5b27b5f3ae78d0476e9f11859b" },
|
|
24
24
|
"hydra.python.utils": { "kind": "Other", "hash": "3f374ef5605f94725379aded1afcb0b5fe5ea84a4e78dd2b0bbc649d0ec672c6" },
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"jsonContent:hydra/dsl/python/names.json": { "kind": "Other", "hash": "244d73ec6a140f89bafcbb87dc8570a09f50151508aa0443708e7070749be876" },
|
|
27
27
|
"jsonContent:hydra/dsl/python/syntax.json": { "kind": "Other", "hash": "a99b94b1f3e542d606da15fd6dafa32d858ce7d71ba02f7b21d8bb4881daa4e3" },
|
|
28
28
|
"jsonContent:hydra/dsl/python/utils.json": { "kind": "Other", "hash": "5464cb8e1db43a03b98327746b668050f4159a90f13ce5334c32e6d7dbbceb4c" },
|
|
29
|
-
"jsonContent:hydra/python/coder.json": { "kind": "Other", "hash": "
|
|
29
|
+
"jsonContent:hydra/python/coder.json": { "kind": "Other", "hash": "4fc339f05fdb67057c04b56b602c240514af03cbc6b57100420cae4f9afa24e8" },
|
|
30
30
|
"jsonContent:hydra/python/environment.json": { "kind": "Other", "hash": "b5bc63f7d18f47262c90738cb793098f88a97376fd52088b3c8661c1d9ea5cbd" },
|
|
31
31
|
"jsonContent:hydra/python/language.json": { "kind": "Other", "hash": "221e68d68030945db181fdd079be4ff619cb4cd1ad5d4b72b4e70f2aa1bd5230" },
|
|
32
32
|
"jsonContent:hydra/python/names.json": { "kind": "Other", "hash": "593cbc7e36735c0d92e34df76e17e4adc949e593e84bcf697b3163b2209a7b1a" },
|
|
33
33
|
"jsonContent:hydra/python/pyproject.json": { "kind": "Other", "hash": "c94de46f1615e6e82d2f706d01ef04293373f6241a9a42882bb394d51b4f7f53" },
|
|
34
|
-
"jsonContent:hydra/python/serde.json": { "kind": "Other", "hash": "
|
|
34
|
+
"jsonContent:hydra/python/serde.json": { "kind": "Other", "hash": "2d290a404a94b22262e9c6eaed2160d2477f4ef30c428c70334a5a5c06eec4a0" },
|
|
35
35
|
"jsonContent:hydra/python/syntax.json": { "kind": "Other", "hash": "8dc3a26ac927fa338b273c9deee6317906977a2deec4c2df1e44ff0bbe0a64cd" },
|
|
36
36
|
"jsonContent:hydra/python/testing.json": { "kind": "Other", "hash": "ea1cbdd469bb2fc8bac0445d75df3d97f832f86ec460bacc06056a6f8f5bfb8a" },
|
|
37
37
|
"jsonContent:hydra/python/utils.json": { "kind": "Other", "hash": "19fcf00beab2f029d765d9212ae2b8be4327ef84aa54702dc55dbe620eba74dc" },
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"hydra/dsl/python/names.py": { "kind": "TargetFile", "hash": "3733bed7b32e56239c4c2dd5a748e66ee0f5b9eff629687648a5ebe232508a93" },
|
|
43
43
|
"hydra/dsl/python/syntax.py": { "kind": "TargetFile", "hash": "5fe1c0c739cdac68d1b90d768153e23ebe7c805bafb96ac698a95425e2d7d7b5" },
|
|
44
44
|
"hydra/dsl/python/utils.py": { "kind": "TargetFile", "hash": "fbf8522b1d5c64eb570027d579b512caf7ae3853f010b4e4666746df6d262812" },
|
|
45
|
-
"hydra/python/coder.py": { "kind": "TargetFile", "hash": "
|
|
45
|
+
"hydra/python/coder.py": { "kind": "TargetFile", "hash": "405bd016bb9f32c1b79a0f34815f28575880ca4f29b06cbd070975beb1c8c977" },
|
|
46
46
|
"hydra/python/environment.py": { "kind": "TargetFile", "hash": "240979735f3a2d479403834c1a4d7a16f060ad447eb4f3b05fbb2db591d7ad0b" },
|
|
47
47
|
"hydra/python/language.py": { "kind": "TargetFile", "hash": "7ea0c3a6015ec1de92aebeed0963c1af9f3b70c8d57815e477c528c795383604" },
|
|
48
48
|
"hydra/python/names.py": { "kind": "TargetFile", "hash": "da24e2a2622692b875e55987179397f23d243ceb2311572befada3da95fddd7c" },
|
|
49
49
|
"hydra/python/pyproject.py": { "kind": "TargetFile", "hash": "1f9001d8d2273d4783105e099b874c273ce520b58456f9b447cb8d5e9a6a37d7" },
|
|
50
|
-
"hydra/python/serde.py": { "kind": "TargetFile", "hash": "
|
|
50
|
+
"hydra/python/serde.py": { "kind": "TargetFile", "hash": "db3cd2cea527eb922af16a2a3ee33fb6092b5dbbb9151f02afa7756a1893750b" },
|
|
51
51
|
"hydra/python/syntax.py": { "kind": "TargetFile", "hash": "24a72af882b47d80cc930f16f51a3e9c1a71c9d8da47a921829f40e847459fca" },
|
|
52
52
|
"hydra/python/testing.py": { "kind": "TargetFile", "hash": "f4e37636391d0abc27a7d722554ded2e8ac7ae8a11f513cb24822d7cdbca4fe7" },
|
|
53
53
|
"hydra/python/utils.py": { "kind": "TargetFile", "hash": "afb0cb6952a26e4be51d8b650e69d793334c37243ab42b910a93c96eaa8ad99b" }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
[project]
|
|
15
15
|
name = "hydra-python"
|
|
16
|
-
version = "0.17.
|
|
16
|
+
version = "0.17.2"
|
|
17
17
|
description = "Python support for Hydra"
|
|
18
18
|
readme = "README.md"
|
|
19
19
|
requires-python = ">=3.12"
|
|
@@ -22,7 +22,7 @@ authors = [
|
|
|
22
22
|
{ name = "Joshua Shinavier", email = "josh@fortytwo.net" },
|
|
23
23
|
]
|
|
24
24
|
dependencies = [
|
|
25
|
-
"hydra-kernel == 0.17.
|
|
25
|
+
"hydra-kernel == 0.17.2",
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
[project.urls]
|
|
@@ -36,6 +36,7 @@ import hydra.overlay.python.lib.strings
|
|
|
36
36
|
import hydra.names
|
|
37
37
|
import hydra.packaging
|
|
38
38
|
import hydra.predicates
|
|
39
|
+
import hydra.print.core
|
|
39
40
|
import hydra.python.environment
|
|
40
41
|
import hydra.python.names
|
|
41
42
|
import hydra.python.serde
|
|
@@ -46,7 +47,6 @@ import hydra.resolution
|
|
|
46
47
|
import hydra.rewriting
|
|
47
48
|
import hydra.scoping
|
|
48
49
|
import hydra.serialization
|
|
49
|
-
import hydra.show.core
|
|
50
50
|
import hydra.strip
|
|
51
51
|
import hydra.typing
|
|
52
52
|
import hydra.util
|
|
@@ -795,7 +795,7 @@ def encode_function_type(env: hydra.python.environment.PythonEnvironment, ft: hy
|
|
|
795
795
|
def encode_type(env: hydra.python.environment.PythonEnvironment, typ: hydra.core.Type) -> Either[T0, hydra.python.syntax.Expression]:
|
|
796
796
|
r"""Encode a Hydra type to a Python type expression."""
|
|
797
797
|
|
|
798
|
-
dflt = Lazy((lambda : Right(hydra.python.utils.double_quoted_string(hydra.overlay.python.lib.strings.cat2("type = ", hydra.
|
|
798
|
+
dflt = Lazy((lambda : Right(hydra.python.utils.double_quoted_string(hydra.overlay.python.lib.strings.cat2("type = ", hydra.print.core.type(hydra.strip.deannotate_type(typ)))))))
|
|
799
799
|
match hydra.strip.deannotate_type(typ):
|
|
800
800
|
case hydra.core.TypeApplication(value=at):
|
|
801
801
|
return encode_application_type(env, at)
|
|
@@ -18,9 +18,9 @@ import hydra.overlay.python.lib.optionals
|
|
|
18
18
|
import hydra.overlay.python.lib.strings
|
|
19
19
|
import hydra.names
|
|
20
20
|
import hydra.packaging
|
|
21
|
+
import hydra.print.docs
|
|
21
22
|
import hydra.python.syntax
|
|
22
23
|
import hydra.serialization
|
|
23
|
-
import hydra.show.docs
|
|
24
24
|
|
|
25
25
|
def compare_op_to_string(op: hydra.python.syntax.CompareOp) -> str:
|
|
26
26
|
r"""Render a Python comparison operator to its source-code form."""
|
|
@@ -1146,7 +1146,7 @@ def to_python_comments(doc_: str) -> str:
|
|
|
1146
1146
|
(lambda : ""),
|
|
1147
1147
|
(lambda : hydra.overlay.python.lib.strings.intercalate("\n",
|
|
1148
1148
|
hydra.overlay.python.lib.lists.map((lambda line: hydra.overlay.python.lib.logic.if_else(hydra.overlay.python.lib.equality.equal(line, ""), (lambda : "#"), (lambda : hydra.overlay.python.lib.strings.cat2("# ", line)))),
|
|
1149
|
-
hydra.overlay.python.lib.strings.lines(hydra.
|
|
1149
|
+
hydra.overlay.python.lib.strings.lines(hydra.print.docs.render_doc_string_with((lambda x1: python_doc_entity_ref(x1)), doc_))))))
|
|
1150
1150
|
|
|
1151
1151
|
def annotated_statement_to_expr(as_: hydra.python.syntax.AnnotatedStatement) -> hydra.ast.Expr:
|
|
1152
1152
|
r"""Serialize an annotated statement (with optional doc comment)."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|