meson/mesonbuild/cmake
Eli Schwartz 9d1b59fa7f
migrate some type comments to modern type annotations
flake8 6 upgrades to pyflakes 3, and in turn this means that support for
parsing `# type: ` style annotations has been removed.

https://github.com/PyCQA/pyflakes/pull/684

This caused one file to fail linting, because it had a typing import
which was only used by a type comment.

```
mesonbuild/cmake/interpreter.py:55:5: F401 '.common.CMakeConfiguration' imported but unused
```

Updating it to actual annotations allows pyflakes to detect its usage
again, and flake8 passes. Do the whole file while we are here.
2022-11-24 11:50:20 -05:00
..
data port from embedded data to importlib.resources 2022-01-10 18:36:57 -05:00
__init__.py cmake: Drop CMake server support and bump min. CMake to >= 3.14 2022-02-03 11:25:59 -05:00
common.py pylint: enable use-a-generator 2022-10-04 00:33:04 -04:00
executor.py Fix purely white space issues reported by flake8 2022-08-26 17:12:40 -04:00
fileapi.py Fix purely white space issues reported by flake8 2022-08-26 17:12:40 -04:00
generator.py pylint: enable use-a-generator 2022-10-04 00:33:04 -04:00
interpreter.py migrate some type comments to modern type annotations 2022-11-24 11:50:20 -05:00
toolchain.py compilers: don't use instance checks to determine properties 2022-09-19 15:18:59 -04:00
traceparser.py pylint: enable use-a-generator 2022-10-04 00:33:04 -04:00
tracetargets.py Fix purely white space issues reported by flake8 2022-08-26 17:12:40 -04:00