Any recommendation what is more optimal?
Thanks for any idea
Code: Select all
import ArchEquipment, ArchWindow
SupportedTypes = [ArchEquipment._Equipment, ArchWindow._Window]
if type(obj.Proxy) in SupportedTypes:
...
Code: Select all
SupportedTypes = ['_Equipment', '_Window']
if type(obj.Proxy).__name__ in SupportedTypes:
...