This PR fixes the type of get_field so it won't report errors in Pyright's strictest type checking mode.