marcocamejo
marcocamejo

Reputation: 828

Does not openpyxl.styles have a Style anymore in v2.4.0?

I just upgraded openpyxl to version 2.4.0 and this code that worked fine in previous versions, doesn't work anymore:

style = openpyxl.styles.Style(**style_kwargs)

Openpyxl says that it doesn't have a Style attribute:

AttributeError: 'module' object has no attribute 'Style'

How does it work now?

Upvotes: 0

Views: 1052

Answers (1)

Charlie Clark
Charlie Clark

Reputation: 19507

The Style class was deprecated several versions ago and has been removed.

Upvotes: 3

Related Questions