typing: Replace objects from typing with literals

We also replace the use of typing.Union and add missing parameters and
returns types for Callable types.

Change-Id: I75ed4d1cc4d84515910a5bd315f8626135258148
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-06-04 11:41:40 +01:00
parent c870873f7f
commit e785ab52dc
42 changed files with 476 additions and 472 deletions
+4 -1
View File
@@ -341,7 +341,10 @@ exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,releasenotes
max-complexity = 40
[hacking]
import_exceptions = typing,nova.i18n
import_exceptions =
collections.abc
nova.i18n
typing
[flake8:local-plugins]
extension =