diff options
author | Eric Harney <eharney@redhat.com> | 2023-03-27 10:43:58 -0400 |
---|---|---|
committer | Eric Harney <eharney@redhat.com> | 2023-03-27 10:43:58 -0400 |
commit | 29de62bf3b3bf5eda8986bc94babf1c94d67bd4e (patch) | |
tree | 9333f44c057b11ce69d4615ef8dca86f5c300e79 /nova/scheduler/client/report.py | |
parent | 402b155043a51a71670476c1b693135f35d9b0cd (diff) | |
download | nova-29de62bf3b3bf5eda8986bc94babf1c94d67bd4e.tar.gz |
mypy: Fix implicit optional usage
Current versions of mypy run with no-implicit-optional
by default. This change gets Nova's mypy test environment
to pass again.
Change-Id: Ie50c8d364ad9c339355cc138b560ec4df14fe307
Diffstat (limited to 'nova/scheduler/client/report.py')
-rw-r--r-- | nova/scheduler/client/report.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/scheduler/client/report.py b/nova/scheduler/client/report.py index 1242752be1..7c14f3d7ef 100644 --- a/nova/scheduler/client/report.py +++ b/nova/scheduler/client/report.py @@ -1047,7 +1047,7 @@ class SchedulerReportClient(object): context: nova_context.RequestContext, rp_uuid: str, traits: ty.Iterable[str], - generation: int = None + generation: ty.Optional[int] = None ): """Replace a provider's traits with those specified. |