pd.core.frame.DataFrame is a full reference to pd.DataFrame. Therefore you can type hint pd.core.series.Series as pd.Series. You see why that is in the structure of the pandas package here
pd.core.frame.DataFrame
pd.DataFrame
pd.core.series.Series
pd.Series