This message was deleted.
# general
s
This message was deleted.
d
get_object
isn't strongly typed, as it can be used to get a variety of different types. It's a type hint error, so doesn't block runtime code. To fix, you need to let your code know what the object will be by doing:
subnet_ids: list[str] = config.get_object("subnet_ids")
You may also need to cast it to give a strong hint to the type checker: https://docs.python.org/3/library/typing.html#typing.cast
It's better to use
require_object
too if you expect the config to always be set
👍 1
h
Thanks for the pointers, I ended up with
cast(Sequence[str], config.cluster_subnet_ids)