summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-13 19:10:12 (GMT)
committerThaddeus Crews <repiteo@outlook.com>2024-11-16 20:58:43 (GMT)
commit3829f4551edebee3e42864b19e6332b24af3eb93 (patch)
tree6ca07b12f8a14e705c00a198739d43cb46d6666e /test
parentd1d5355b716644be649d99b16c6f2bf64e9f64e4 (diff)
downloadSCons-3829f4551edebee3e42864b19e6332b24af3eb93.zip
SCons-3829f4551edebee3e42864b19e6332b24af3eb93.tar.gz
SCons-3829f4551edebee3e42864b19e6332b24af3eb93.tar.bz2
Integrate `from __future__ import annotations`
Diffstat (limited to 'test')
-rw-r--r--test/Variables/PackageVariable.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Variables/PackageVariable.py b/test/Variables/PackageVariable.py
index bc447dd..77c04e6 100644
--- a/test/Variables/PackageVariable.py
+++ b/test/Variables/PackageVariable.py
@@ -27,8 +27,9 @@
Test the PackageVariable canned Variable type.
"""
+from __future__ import annotations
+
import os
-from typing import List
import TestSCons
@@ -36,7 +37,7 @@ test = TestSCons.TestSCons()
SConstruct_path = test.workpath('SConstruct')
-def check(expect: List[str]) -> None:
+def check(expect: list[str]) -> None:
result = test.stdout().split('\n')
# skip first line and any lines beyond the length of expect
assert result[1:len(expect)+1] == expect, (result[1:len(expect)+1], expect)