def build(self, type, x, y, size): self.validify() if not isinstance(type, Type): raise TypeError('type should be of [Type]') type.validify() return library.botBuild(self.ptr, type.ptr, x, y, size)
def build(self, type, x, y, size): self.validify() if type.__class__ not in [Type]: raise TypeError('type should be of [Type]') type.validify() return library.botBuild(self.ptr, type.ptr, x, y, size)