nova/nova/pci
Stephen Finucane 51d16adda6 mypy: Add type annotations to 'nova.pci'
The 'nova.pci' module is poorly understood and difficult to debug.
Start adding type hints to make this a little easier to parse and catch
dumb errors. Some code needs to be reworked to make 'mypy' happy, but
it's mostly just type annotations.

Note that because of how the 'nova.objects' module works, we need to
delay interpolation by using forward references, or expressing the type
as string literals to be resolved later [1].

[1] https://www.python.org/dev/peps/pep-0484/#forward-references

Change-Id: I2a609606806c6cabdf95d53339335f61743fc5b0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-04-26 18:06:21 +01:00
..
__init__.py PCI utils 2013-08-23 14:21:12 +08:00
devspec.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
manager.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
request.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
stats.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
utils.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
whitelist.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00