diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-11-23 20:00:29 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-11-24 11:50:20 -0500 |
commit | 9d1b59fa7ff1a1a31599a04a02c48c6b41026c2c (patch) | |
tree | 02de0bf4729e414f950a27bd7f1e6c82c05f3309 /mesonbuild/interpreter/interpreterobjects.py | |
parent | f645bcf68dae64773d3a07e6806d14e328403163 (diff) | |
download | meson-9d1b59fa7ff1a1a31599a04a02c48c6b41026c2c.zip meson-9d1b59fa7ff1a1a31599a04a02c48c6b41026c2c.tar.gz meson-9d1b59fa7ff1a1a31599a04a02c48c6b41026c2c.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/interpreter/interpreterobjects.py')
0 files changed, 0 insertions, 0 deletions