Skip to content

openpyxl.chart.Series is missing from the stub #16209

Description

@t-onoz

In openpyxl's chart/__init__.py, Series is exported as:

from .series_factory import SeriesFactory as Series

However, the corresponding export is missing from typeshed's openpyxl/chart/__init__.pyi.
As a result, type checkers report an error for valid code such as:

from openpyxl.chart import Series

This import is also used in the official openpyxl documentation.
I think the stub should include:

from .series_factory import SeriesFactory as Series

References
https://openpyxl.readthedocs.io/en/stable/charts/introduction.html
https://foss.heptapod.net/openpyxl/openpyxl/-/blob/branch/3.1/openpyxl/chart/__init__.py
https://github.com/python/typeshed/blob/main/stubs/openpyxl/openpyxl/chart/__init__.pyi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions