Skip to content

Remove logic for legacy bundled stubs#18372

Merged
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:legacy-stubs
Apr 21, 2026
Merged

Remove logic for legacy bundled stubs#18372
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:legacy-stubs

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja commented Dec 30, 2024

For mypy v2

@github-actions

This comment has been minimized.

sobolevn added a commit to sobolevn/aiortc that referenced this pull request Feb 20, 2025
Looks like stubs for this packages were not installed. It might be an error in the future.

See python/mypy#18372
@hauntsaninja hauntsaninja force-pushed the legacy-stubs branch 3 times, most recently from c9fc7af to ee8eb89 Compare January 18, 2026 01:56
@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as ready for review April 3, 2026 23:35
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/server/api/collections.py:6: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/settings/sources.py:8: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/runner/_deployment_registry.py:6: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/_internal/compatibility/deprecated.py:66: error: Library stubs not installed for "dateparser"  [import-untyped]
- src/prefect/_internal/compatibility/deprecated.py:66: note: Hint: "python3 -m pip install types-dateparser"
- src/prefect/_internal/compatibility/deprecated.py:66: note: (or run "mypy --install-types" to install all missing stub packages)
- src/prefect/_internal/compatibility/deprecated.py:66: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/prefect/server/utilities/messaging/memory.py:17: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/logging/clients.py:16: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/events/ordering/memory.py:11: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/events/clients.py:20: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/concurrency/services.py:9: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/concurrency/services.py:9: note: Hint: "python3 -m pip install types-cachetools"
- src/prefect/task_runs.py:10: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/_waiters.py:13: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/runner/_event_emitter.py:5: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/events/actions.py:36: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/results.py:23: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/models/events.py:5: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/database/query_components.py:18: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/events/ordering/db.py:13: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/cli/deployment.py:392: error: Library stubs not installed for "dateparser"  [import-untyped]

trio (https://github.com/python-trio/trio)
- src/trio/_tools/sync_requirements.py:12: error: Library stubs not installed for "yaml"  [import-untyped]
- src/trio/_tests/tools/test_sync_requirements.py:10: error: Library stubs not installed for "yaml"  [import-untyped]
- src/trio/_tests/tools/test_sync_requirements.py:10: note: Hint: "python3 -m pip install types-PyYAML"
- src/trio/_tests/tools/test_sync_requirements.py:10: note: (or run "mypy --install-types" to install all missing stub packages)
- src/trio/_tests/tools/test_sync_requirements.py:10: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/tseries/holiday.pyi:11: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
- pandas-stubs/_libs/tslibs/offsets.pyi:16: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
- pandas-stubs/_libs/tslibs/offsets.pyi:16: note: Hint: "python3 -m pip install types-python-dateutil"
- pandas-stubs/_libs/tslibs/offsets.pyi:16: note: (or run "mypy --install-types" to install all missing stub packages)
- pandas-stubs/_libs/tslibs/offsets.pyi:16: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/test_holidays.py:4: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
- tests/test_timefuncs.py:10: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
- tests/test_timefuncs.py:1984: error: Library stubs not installed for "dateutil.easter"  [import-untyped]
- tests/scalars/test_scalars.py:12: error: Library stubs not installed for "dateutil.tz"  [import-untyped]
- tests/scalars/test_scalars.py:12: error: Library stubs not installed for "dateutil"  [import-untyped]

pandera (https://github.com/pandera-dev/pandera)
- tests/pandas/test_pandas_engine.py:13: error: Library stubs not installed for "pytz"  [import-untyped]
- tests/pandas/test_pandas_engine.py:13: note: Hint: "python3 -m pip install types-pytz"
- tests/pandas/test_pandas_engine.py:13: note: (or run "mypy --install-types" to install all missing stub packages)
- tests/pandas/test_pandas_engine.py:13: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/solr/update.py:8: error: Library stubs not installed for "aiofiles"  [import-untyped]
- openlibrary/solr/update.py:8: note: Hint: "python3 -m pip install types-aiofiles"
- openlibrary/solr/update.py:8: note: (or run "mypy --install-types" to install all missing stub packages)
- openlibrary/solr/update.py:8: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

@hauntsaninja hauntsaninja merged commit e7f6044 into python:master Apr 21, 2026
24 checks passed
@hauntsaninja hauntsaninja deleted the legacy-stubs branch April 21, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant