Registry / type-stubs / types-seaborn

types-seaborn

JSON →
library0.13.2.20260728pypypi✓ verified 22d ago

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-seaborn
INSTALL
IMPORT
SIG · TYPES-SEABORN
T
types-seaborn
type-stubspythonv0.13.2.20260728
Install
9.7s avg
Import
Disk
399MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.13.2.20260728 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 361.8MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 9.7s · import 0.000s · 415MB
399MB installed
● package 399MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

seaborn
import seaborn_stubs as seaborn
import seaborn as sns

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.

import seaborn as sns import matplotlib.pyplot as plt import pandas as pd # Often used with seaborn # Apply the default seaborn theme for aesthetics sns.set_theme() # Load an example dataset provided by seaborn tips = sns.load_dataset("tips") # Create a relational plot sns.relplot( data=tips, x="total_bill", y="tip", col="time", hue="smoker", style="smoker", size="size" ) plt.title("Tips by Total Bill, Time, and Smoker Status") plt.show()
Debug
Known issues
gotchatypes-seaborn is solely a type stub package. Installing it does not provide the Seaborn library's functionality. You must install the actual 'seaborn' package separately to use the library at runtime.
fix
Ensure 'pip install seaborn' is run alongside 'pip install types-seaborn'.
affects: All versions
breakingType annotations provided by 'types-seaborn' are specific to a particular version of the 'seaborn' library. Mismatches between the installed 'types-seaborn' version and the 'seaborn' library version can lead to incorrect or missing type hints, causing type checkers to report errors or fail to detect issues.
fix
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.
affects: All versions
gotchaContributions and bug fixes for 'types-seaborn' should not be directed to a dedicated 'types-seaborn' repository. As part of the typeshed project, all improvements to these stubs must be contributed to the main typeshed GitHub repository.
fix
Refer to the typeshed GitHub repository (github.com/python/typeshed) for reporting issues or contributing changes to the type stubs.
affects: All versions
Upgrade
Version history
0.13.2.20260728latest on PyPI · released Jul 28, 2026
Audit
Dependencies
seabornrequiredProvides the actual runtime functionality; types-seaborn only provides type hints for this library.
matplotlibrequiredSeaborn is built on Matplotlib and is a core dependency.
pandasrequiredSeaborn is designed to work closely with Pandas DataFrames for data input.
numpyrequiredA core dependency for numerical operations in both Pandas and Matplotlib.
Agent activity
36 hits · last 30 days
node
28
OpenAI (training)
1
Resources
types-seaborn — pip install types-seaborn · libregistry