You're in luck then. Got to Project -> Project Settings. In the General tab, go down to the Debug section and select GDScript. Scroll on the right until you find Untyped Declaration and change the value to Warn or Error. GDScript will enforce strong static typing.