diff options
author | Brett Holman <bholman.devel@gmail.com> | 2022-02-14 12:24:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 13:24:00 -0600 |
commit | 50195ec8d1052d2b7a80f47a3709ebc4e74d6764 (patch) | |
tree | 4abf46c23a891199f5e13aff3071feaebeb36d38 /tests/unittests/config/test_schema.py | |
parent | 9ba3ca6ce5013207737e431f52735c7eda3a2fbb (diff) | |
download | vyos-cloud-init-50195ec8d1052d2b7a80f47a3709ebc4e74d6764.tar.gz vyos-cloud-init-50195ec8d1052d2b7a80f47a3709ebc4e74d6764.zip |
use PEP 589 syntax for TypeDict (#1253)
Use PEP 589 syntax for TypeDict annotation.
Also fixes previously broken typing MetaSchema typing implementation.
Diffstat (limited to 'tests/unittests/config/test_schema.py')
-rw-r--r-- | tests/unittests/config/test_schema.py | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/tests/unittests/config/test_schema.py b/tests/unittests/config/test_schema.py index 2f43d9e7..1d48056a 100644 --- a/tests/unittests/config/test_schema.py +++ b/tests/unittests/config/test_schema.py @@ -420,20 +420,18 @@ class GetSchemaDocTest(CiTestCase): "frequency": "frequency", "distros": ["debian", "rhel"], } - self.meta = MetaSchema( - { - "title": "title", - "description": "description", - "id": "id", - "name": "name", - "frequency": "frequency", - "distros": ["debian", "rhel"], - "examples": [ - 'ex1:\n [don\'t, expand, "this"]', - "ex2: true", - ], - } - ) + self.meta: MetaSchema = { + "title": "title", + "description": "description", + "id": "id", + "name": "name", + "frequency": "frequency", + "distros": ["debian", "rhel"], + "examples": [ + 'ex1:\n [don\'t, expand, "this"]', + "ex2: true", + ], + } def test_get_meta_doc_returns_restructured_text(self): """get_meta_doc returns restructured text for a cloudinit schema.""" |