You can enable inline hints to show the types of the variables that are declared without an explicit type annotation. Make sure that the editor is in focus and select View | Active Editor | Show Type Hints from the main menu.

Type hints