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.
1 parent d1a8eea commit 18d969fCopy full SHA for 18d969f
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