AbstractThis work extends the theory of Rychkov, who developed the theory of $A_{p}^{\mathrm{loc}}$
A
p
loc
weights. It also extends the work by Cruz-Uribe SFO, Fiorenza, and Neugebauer. The class $A_{p(\cdot )}^{\mathrm{loc}}$
A
p
(
⋅
)
loc
is defined. The weighted inequality for the local Hardy–Littlewood maximal operator on Lebesgue spaces with variable exponents is proven. Cruz-Uribe SFO, Fiorenza, and Neugebauer considered the Muckenhoupt class for Lebesgue spaces with variable exponents. However, due to the setting of variable exponents, a new method for extending weights is needed. The proposed extension method differs from that by Rychkov. A passage to the vector-valued inequality is realized by means of the extrapolation technique. This technique is an adaptation of the work by Cruz-Uribe and Wang. Additionally, a theory of extrapolation adapted to our class of weights is also obtained.