Properly type-hint Container.

Signed-off-by: crynobone <crynobone@gmail.com>