Skip to content

Commit ed3a6c1

Browse files
authored
Suggestions for pandas-stubs and lxml-stubs (#14737)
Resolves #14328 Remove the sqlalchemy comment because it's now a PEP 561 package
1 parent 007960c commit ed3a6c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mypy/stubinfo.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ def stub_package_name(prefix: str) -> str:
7676
# Package name can have one or two components ('a' or 'a.b').
7777
#
7878
# Note that these packages are omitted for now:
79-
# sqlalchemy: It's unclear which stub package to suggest. There's also
80-
# a mypy plugin available.
8179
# pika: typeshed's stubs are on PyPI as types-pika-ts.
8280
# types-pika already exists on PyPI, and is more complete in many ways,
8381
# but is a non-typeshed stubs package.
@@ -180,4 +178,9 @@ def stub_package_name(prefix: str) -> str:
180178
"xmltodict": "types-xmltodict",
181179
"xxhash": "types-xxhash",
182180
"zxcvbn": "types-zxcvbn",
181+
# Stub packages that are not from typeshed
182+
# Since these can be installed automatically via --install-types, we have a high trust bar
183+
# for additions here
184+
"pandas": "pandas-stubs", # https://github.com/pandas-dev/pandas-stubs
185+
"lxml": "lxml-stubs", # https://github.com/lxml/lxml-stubs
183186
}

0 commit comments

Comments
 (0)