Tests: python: use quoted annotations to support python <= 3.6
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 27 Mar 2023 19:25:23 +0000 (15:25 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 28 Mar 2023 18:58:38 +0000 (14:58 -0400)
commitce8470c9d039c563167d4fd061803e9eacf69ec3
tree5247f60ba8e17f904f90fd637bdd78181abc2fc8
parent544d8425fb15197a195ca16c2993e6a4026c0493
Tests: python: use quoted annotations to support python <= 3.6

Python 3.0 introduced syntax for parameter and return type annotations,
as specified in PEP 484. Python 3.6 introduced support for variable type
annotations, as specified in PEP 526.

Upstream recommends using quoted annotations for librairies that need to
support older python versions.

See https://typing.readthedocs.io/en/latest/source/libraries.html#compatibility-with-older-python-versions

Change-Id: Ifc6017a7baa9f0589e85d32005ac9ead18c1c9fb
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/context/test_ust.py
tests/utils/lttngtest/environment.py
tests/utils/lttngtest/logger.py
tests/utils/lttngtest/lttng.py
tests/utils/lttngtest/lttngctl.py
tests/utils/lttngtest/tap_generator.py
This page took 0.025522 seconds and 4 git commands to generate.