Here if self.gid is None we get a `TypeError`.