summaryrefslogtreecommitdiff
path: root/SCons/Scanner/LaTeXTests.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-05-03 18:20:24 -0700
committerGitHub <noreply@github.com>2023-05-03 18:20:24 -0700
commit5717e06c245d99923f5c4a6e786a564799871c49 (patch)
tree9f61127c1b9bbb2e30a39b316b0f4f3d8430333d /SCons/Scanner/LaTeXTests.py
parentfb846e7091c4b0dbe136ab33eb940b2502a94a29 (diff)
parentf85193fbbfa29e5dff26d12b32726c9638481fba (diff)
downloadscons-git-5717e06c245d99923f5c4a6e786a564799871c49.tar.gz
Merge pull request #4346 from mwichmann/maint/cheap-typing
Add some cheap return and parameter annotations
Diffstat (limited to 'SCons/Scanner/LaTeXTests.py')
-rw-r--r--SCons/Scanner/LaTeXTests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/SCons/Scanner/LaTeXTests.py b/SCons/Scanner/LaTeXTests.py
index 252d8d451..ae3ae6659 100644
--- a/SCons/Scanner/LaTeXTests.py
+++ b/SCons/Scanner/LaTeXTests.py
@@ -81,7 +81,7 @@ test.write('incNO.tex', "\n")
# define some helpers:
# copied from CTest.py
class DummyEnvironment(collections.UserDict):
- def __init__(self, **kw):
+ def __init__(self, **kw) -> None:
super().__init__()
self.data.update(kw)
self.fs = SCons.Node.FS.FS(test.workpath(''))
@@ -121,7 +121,7 @@ if os.path.normcase('foo') == os.path.normcase('FOO'):
else:
my_normpath = os.path.normpath
-def deps_match(self, deps, headers):
+def deps_match(self, deps, headers) -> None:
global my_normpath
scanned = list(map(my_normpath, list(map(str, deps))))
expect = list(map(my_normpath, headers))
@@ -129,7 +129,7 @@ def deps_match(self, deps, headers):
class LaTeXScannerTestCase1(unittest.TestCase):
- def runTest(self):
+ def runTest(self) -> None:
env = DummyEnvironment(LATEXSUFFIXES = [".tex", ".ltx", ".latex"])
s = SCons.Scanner.LaTeX.LaTeXScanner()
path = s.path(env)
@@ -141,7 +141,7 @@ class LaTeXScannerTestCase1(unittest.TestCase):
deps_match(self, deps, headers)
class LaTeXScannerTestCase2(unittest.TestCase):
- def runTest(self):
+ def runTest(self) -> None:
env = DummyEnvironment(TEXINPUTS=[test.workpath("subdir")],LATEXSUFFIXES = [".tex", ".ltx", ".latex"])
s = SCons.Scanner.LaTeX.LaTeXScanner()
path = s.path(env)
@@ -150,7 +150,7 @@ class LaTeXScannerTestCase2(unittest.TestCase):
deps_match(self, deps, headers)
class LaTeXScannerTestCase3(unittest.TestCase):
- def runTest(self):
+ def runTest(self) -> None:
env = DummyEnvironment(TEXINPUTS=[test.workpath("subdir")],LATEXSUFFIXES = [".tex", ".ltx", ".latex"])
s = SCons.Scanner.LaTeX.LaTeXScanner()
path = s.path(env)
@@ -159,7 +159,7 @@ class LaTeXScannerTestCase3(unittest.TestCase):
deps_match(self, deps, files)
class LaTeXScannerTestCase4(unittest.TestCase):
- def runTest(self):
+ def runTest(self) -> None:
env = DummyEnvironment(TEXINPUTS=[test.workpath("subdir")],LATEXSUFFIXES = [".tex", ".ltx", ".latex"])
s = SCons.Scanner.LaTeX.LaTeXScanner()
path = s.path(env)