According to French law, as a tenant (locataire), you are allowed to own a pet. Therefore, if an agent or landlord informs you that dogs or cats or pets in general are prohibited in the apartment, it is not legally correct, even if it is stated in the contract.