LOS ANGELES (CBSLA) — A ban on suspending students for “willful defiance” was signed into law Monday by California Gov. Gavin Newsom.

The new law, which goes into effect on July 1, 2020 – just in time for the 2020-2021 school year – bans schools from suspending students from kindergarten through eighth grade for showing “willful defiance” toward a teacher or administrator.

READ MORE: Report: Actor Bob Odenkirk Hospitalized After Collapsing During Filming Of 'Better Call Saul' Final Season

Teachers can still remove a student from a classroom, but not suspend the child.

“Willful defiance” suspensions are a “highly subjective” category of suspensions that could include a student doing something as innocuous as not removing a hat or sleeping in class, according to state Sen. Nancy Skinner, who sponsored the bill. Skinner cited a 2018 report by UCLA and San Diego State professors that found black male students were suspended at nearly four times the student average in California, with “willful defiance” representing 15 percent of elementary school suspensions and 21 percent of middle school suspensions.

The new law is an expansion of a 2015 ban on these types of suspensions for students up to third grade. This new law permanently bans suspensions for grades four and five and restricts them for grades six through eight until 2025.

READ MORE: SWAT Standoff In Echo Park After Body Is Found Inside Home

Students can still be suspended or recommended for expulsion for violent acts, such as injuring classmates or teachers, being in possession of a weapon or drugs, or damaging school or private property.

According to Skinner, a report by the U.S. Government Accounting Office found “implicit bias on the part of teachers and staff may cause them to judge students’ behaviors differently based on the students’ race and sex.”

“Ending willful defiance suspensions may be one of the best ways to disrupt the school-to-prison pipeline,” Skinner said in a statement.

MORE NEWS: Ed Buck Found Guilty In West Hollywood Overdose Deaths

Large school districts like Los Angeles Unified had already eliminated willful defiance suspensions. The new law will apply to both traditional public schools and charter schools.