Skip to content

Conversation

@cdce8p
Copy link
Member

@cdce8p cdce8p commented Oct 11, 2025

Astroid isn't fully typed yet and thus doesn't have a py.typed file yet. Sometimes it's helpful to check the mypy output as if astroid would have a py.typed file. Mypy does have an option for it follow_untyped_imports = true. This PR adds it to the config as a comment. If necessary devs can simply uncomment that section and run mypy without having to lookup the correct config value again.

https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker
https://mypy.readthedocs.io/en/stable/config_file.html#confval-follow_untyped_imports

Unfortunately there are still over 900 errors with that setting enabled, so I don't think we'll be adding py.typed to astroid any time soon.

@cdce8p cdce8p added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Oct 11, 2025
@codecov
Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.94%. Comparing base (6f91463) to head (16ee5ad).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #10635   +/-   ##
=======================================
  Coverage   95.94%   95.94%           
=======================================
  Files         176      176           
  Lines       19519    19519           
=======================================
  Hits        18727    18727           
  Misses        792      792           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cdce8p cdce8p merged commit 7be0b8f into pylint-dev:main Oct 11, 2025
28 of 30 checks passed
@cdce8p cdce8p deleted the mypy-config branch October 11, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants