Replace some typing definitions with standard Python types or collections.abc types.
typing
collections.abc