Skip to content

Conversation

@hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Dec 30, 2024

For mypy v2

@github-actions
Copy link
Contributor

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/server/utilities/messaging/memory.py:12: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/events/clients.py:23: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/events/clients.py:23: note: Hint: "python3 -m pip install types-cachetools"
- src/prefect/task_runs.py:8: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/results.py:25: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/events/actions.py:34: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/events/ordering.py:21: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/models/events.py:6: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/server/database/query_components.py:20: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/runner/runner.py:63: error: Library stubs not installed for "cachetools"  [import-untyped]
- src/prefect/blocks/redis.py:6: error: Library stubs not installed for "redis.asyncio"  [import-untyped]
- src/prefect/blocks/redis.py:6: note: Hint: "python3 -m pip install types-redis"
- src/prefect/blocks/redis.py:6: note: (or run "mypy --install-types" to install all missing stub packages)
- src/prefect/blocks/redis.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/prefect/blocks/redis.py:6: error: Library stubs not installed for "redis"  [import-untyped]
- src/prefect/cli/deployment.py:708: error: Library stubs not installed for "dateparser"  [import-untyped]
- src/prefect/cli/deployment.py:708: note: Hint: "python3 -m pip install types-dateparser"

alectryon (https://github.com/cpitclaudel/alectryon)
- alectryon/cli.py:114: error: Library stubs not installed for "docutils.core"  [import-untyped]
- alectryon/cli.py:114: note: Hint: "python3 -m pip install types-docutils"
- alectryon/cli.py:114: note: (or run "mypy --install-types" to install all missing stub packages)
- alectryon/cli.py:114: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- alectryon/cli.py:115: error: Library stubs not installed for "docutils.io"  [import-untyped]
- alectryon/docutils.py:71: error: Library stubs not installed for "docutils"  [import-untyped]
- alectryon/docutils.py:72: error: Library stubs not installed for "docutils.frontend"  [import-untyped]
- alectryon/docutils.py:73: error: Library stubs not installed for "docutils.transforms"  [import-untyped]
- alectryon/docutils.py:74: error: Library stubs not installed for "docutils.utils"  [import-untyped]
- alectryon/docutils.py:75: error: Library stubs not installed for "docutils.writers"  [import-untyped]
- alectryon/docutils.py:81: error: Library stubs not installed for "docutils.readers.standalone"  [import-untyped]
- alectryon/docutils.py:1197: error: Library stubs not installed for "docutils.statemachine"  [import-untyped]
+ alectryon/docutils.py:78: error: Unused "type: ignore" comment  [unused-ignore]
+ alectryon/docutils.py:79: error: Unused "type: ignore" comment  [unused-ignore]
+ alectryon/docutils.py:80: error: Unused "type: ignore" comment  [unused-ignore]

paasta (https://github.com/yelp/paasta)
- paasta_tools/contrib/get_running_task_allocation.py:15: error: Library stubs not installed for "simplejson"  [import-untyped]
- paasta_tools/contrib/get_running_task_allocation.py:15: note: Hint: "python3 -m pip install types-simplejson"
- paasta_tools/cli/cmds/validate.py:37: error: Library stubs not installed for "croniter"  [import-untyped]
- paasta_tools/cli/cmds/validate.py:37: note: Hint: "python3 -m pip install types-croniter"
- paasta_tools/cli/cmds/validate.py:37: note: (or run "mypy --install-types" to install all missing stub packages)
- paasta_tools/cli/cmds/validate.py:37: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

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

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

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcdtlstransport.py:16: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- src/aiortc/rtcdtlstransport.py:16: note: Hint: "python3 -m pip install types-pyOpenSSL"
- src/aiortc/rtcdtlstransport.py:16: note: (or run "mypy --install-types" to install all missing stub packages)
- src/aiortc/rtcdtlstransport.py:16: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

PyGithub (https://github.com/PyGithub/PyGithub)
- github/Team.py:68: error: Library stubs not installed for "deprecated"  [import-untyped]
- github/Repository.py:165: error: Library stubs not installed for "deprecated"  [import-untyped]
- github/AppAuthentication.py:39: error: Library stubs not installed for "deprecated"  [import-untyped]
- github/AppAuthentication.py:39: note: Hint: "python3 -m pip install types-Deprecated"
- github/AppAuthentication.py:39: note: (or run "mypy --install-types" to install all missing stub packages)
- github/AppAuthentication.py:39: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- github/GithubIntegration.py:38: error: Library stubs not installed for "deprecated"  [import-untyped]

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

mitmproxy (https://github.com/mitmproxy/mitmproxy)
- mitmproxy/certs.py:16: error: Library stubs not installed for "OpenSSL"  [import-untyped]
+ mitmproxy/net/tls.py:21: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/net/tls.py:13: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- mitmproxy/net/tls.py:15: error: Library stubs not installed for "OpenSSL.crypto"  [import-untyped]
- mitmproxy/utils/debug.py:13: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- mitmproxy/utils/emoji.py:1860: error: Library stubs not installed for "requests"  [import-untyped]
- mitmproxy/utils/emoji.py:1860: note: Hint: "python3 -m pip install types-requests"
- mitmproxy/tls.py:5: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- mitmproxy/proxy/layers/tls.py:11: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- mitmproxy/proxy/server.py:23: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- mitmproxy/addons/tlsconfig.py:13: error: Library stubs not installed for "OpenSSL"  [import-untyped]
- mitmproxy/addons/tlsconfig.py:13: note: Hint: "python3 -m pip install types-pyOpenSSL"
- mitmproxy/addons/tlsconfig.py:13: note: (or run "mypy --install-types" to install all missing stub packages)
- mitmproxy/addons/tlsconfig.py:13: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

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

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
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