Most flats for sale are usually leasehold.
Whether pets are allowed will depend on the terms of the flat's lease.
The keeping of animals may be prohibited within the lease.
Alternatively animals such as cats and dogs may be permitted but only with the landlord's consent.