File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: Apache-2.0
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import Optional , cast
66
77from etl_entities .hwm import HWM , HWMTypeRegistry
88from etl_entities .hwm_store import BaseHWMStore , register_hwm_store_class
@@ -232,6 +232,8 @@ def force_create_namespace(self) -> HorizonHWMStore:
232232 self ._namespace_id = namespace .id # noqa: WPS601
233233 except EntityAlreadyExistsError :
234234 namespace = self ._get_namespace (self .namespace )
235+ namespace = cast ("NamespaceResponseV1" , namespace )
236+ self ._namespace_id = namespace .id # noqa: WPS601
235237 return self
236238
237239 # LoginPassword, RetryConfig and TimeoutConfig can be inherited from Pydantic v2 BaseModel
You can’t perform that action at this time.
0 commit comments