types-seaborn is a type stub package providing static type annotations for the popular Seaborn statistical data visualization library. It allows type checkers (like MyPy or Pyright) to verify code that uses Seaborn, improving code quality and catching potential errors during development. This package is part of the broader typeshed project, and its current version, 0.13.2.20260408, aims to provide accurate annotations for seaborn==0.13.2.
pip install types-seabornVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates a typical use of Seaborn to create a statistical visualization. It imports Seaborn (aliased as `sns`), Matplotlib for displaying the plot, and Pandas for data handling. It then loads a sample dataset, applies a default Seaborn theme, creates a complex relational plot, and finally displays it.
Ensure 'pip install seaborn' is run alongside 'pip install types-seaborn'.
Always check the 'types-seaborn' PyPI description for the targeted 'seaborn' version (e.g., 'types-seaborn==0.13.2.20260408' targets 'seaborn==0.13.2'). Try to keep the versions aligned.
Refer to the typeshed GitHub repository (github.com/python/typeshed) for reporting issues or contributing changes to the type stubs.