Type hint define function for consistency