Black medic can be a summer annual, biennial or perennial.
Leaves and seedheads with yellow flowers: