Facts
Property received by will or inheritance is excluded from the gift tax rule, whoever the giver is. So you pay no income tax on receiving the flat, even though you are not related. Your cost for a later sale is his cost, and his holding period counts.