interpreter/compiler: Add type checking for the Compiler object
This adds a full set of `typed_pos_args` and `typed_kwarg` decorations, as well as fixing all of the typing errors reported by mypy.
This commit is contained in:
parent
bcb5400e34
commit
b30dddd4e5
File diff suppressed because it is too large
Load Diff
|
@ -1826,13 +1826,8 @@ class AllPlatformTests(BasePlatformTests):
|
|||
|
||||
def test_permitted_method_kwargs(self):
|
||||
tdir = os.path.join(self.unit_test_dir, '25 non-permitted kwargs')
|
||||
out = self.init(tdir)
|
||||
for expected in [
|
||||
r'WARNING: Passed invalid keyword argument "prefixxx".',
|
||||
r'WARNING: Passed invalid keyword argument "argsxx".',
|
||||
r'WARNING: Passed invalid keyword argument "invalidxx".',
|
||||
]:
|
||||
self.assertRegex(out, re.escape(expected))
|
||||
out = self.init(tdir, allow_fail=True)
|
||||
self.assertIn('Function does not take keyword arguments.', out)
|
||||
|
||||
def test_templates(self):
|
||||
ninja = mesonbuild.environment.detect_ninja()
|
||||
|
|
Loading…
Reference in New Issue