We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21cb3b5 + 18d969f commit 363e656Copy full SHA for 363e656
1 file changed
transip/mixins.py
@@ -42,7 +42,9 @@ def get(self, id: str, **kwargs) -> Optional[Type[ApiObject]]:
42
path=self._path,
43
id=id
44
)
45
- obj: Type[ApiObject] = self.client.get(path)[self._resp_get_attr]
+ obj: Type[ApiObject] = self._obj_cls( # type: ignore
46
+ self.client.get(path)[self._resp_get_attr]
47
+ )
48
return obj
49
return None
50
0 commit comments