Fix various typing things that got muddled in a merge.
Review Request #14764 — Created Jan. 8, 2026 and updated — Latest diff uploaded
The recent merge with the release-5.x branch (0c3301c) brought in some
unused or wrong typing imports. This change fixes them.This also adds type overloads for
get_authenticated_session(), to show
that a session resource will always be returned ifauth_required=True.
Ran unit tests.