adventurous-butcher-54166
04/18/2024, 10:44 AMid, name, location etc. properties present to get rid of using Any with isinstance() & hasattr() checks
• Pulumi Resource Class Objects – which I use to retreive metadata like naming restrictions, public/private DNS information, for a given Resource Class
The only problem I haven't been able to overcome is to hint that the type is a subclass or instance of pulumi.Resource / pulumi.CustomResource
Maybe this isn't possible without an Intersection type which isn't yet available in Python? But thought I'd ask here if someone has been able to figure out a workaround or a better alternative way to achieve this?adventurous-butcher-54166
04/18/2024, 10:45 AMhundreds-gpu-71155
04/18/2024, 1:13 PM• A protocol is never a subtype of a concrete type.
hundreds-gpu-71155
04/18/2024, 1:14 PMT should be typing.Self