This website requires JavaScript.
Explore
Get Started
openstack
/
nova
Code
Issues
Proposed changes
6a71981e47
Branches
Tags
View all branches
nova
/
mypy-files.txt
4 lines
80 B
Plaintext
Raw
Normal View
History
Unescape
Escape
hardware: Update and correct typing information This is going to be used extensively in forthcoming patches. Lay the groundwork now. This requires some minor tweaks of code that mypy found confusing along with unit tests for coverage gaps it exposed. Part of blueprint use-pcpu-and-vcpu-in-one-instance Change-Id: Ied35762c353a084398ab8032a8efe6eada69dd9b Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-04-06 17:27:51 +01:00
nova/virt/hardware.py
tox: Integrate mypy mypy is an experimental optional static type checker for Python that aims to combine the benefits of dynamic (or "duck") typing and static typing. While still in development, most features are supported and it's already being used by real world projects like Sphinx. Let's start small by integrating it into some of the interfaces that nova exposes. We can further build upon this if it works out. This change sets up the boilerplate necessary to use mypy in nova. Type annotations are not included for any module - these will be added separately. We're calling mypy by way of a script, as this allows us to store a list of files that we have converted while we're in the process of adding type annotations where necessary. Change-Id: I75ab46a6768c4ca2050fdde2b7f8eeb90724c8c6 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2017-06-02 16:45:41 +01:00
nova/virt/libvirt/__init__.py
libvirt: Add typing information As with the 'nova.virt.hardware' module, add typing information here now so that we can use it during development of later features. This requires some minor tweaks of code that mypy found confusing. Part of blueprint use-pcpu-and-vcpu-in-one-instance Change-Id: Icc7b3d250bb9dd3d162731959185d9e962727247 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-03-16 13:00:15 +00:00
nova/virt/libvirt/driver.py
Copy Permalink