mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 17:23:06 +00:00
f1cc88378a
With mypy 0.920, two warnings appear on current main: $ mypy --strict --no-warn-return-any drgn _drgn.pyi drgn/helpers/linux/__init__.py:36: error: Need type annotation for "__all__" (hint: "__all__: List[<type>] = ...") drgn/helpers/linux/__init__.py:38: error: unused "type: ignore" comment Found 2 errors in 1 file (checked 33 source files) The "unused" type:ignore directive was necessary for prior versions, so add --no-warn-unused-ignores, so that we pass on multiple versions. Apply a List[str] annotation to the __all__ variable to silence the other error. Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com> |
||
---|---|---|
.. | ||
ci.yml | ||
dco-check.yml | ||
vmtest-build.yml |