🔧 mypy- disallow 'any generics' by danieleades · Pull Request #865 · executablebooks/MyST-Parser

@danieleades

  • make mypy config stricter by disallowing 'any' generics
  • fix some errors by adding generics
  • 'whitelist' the modules with excessive errors
  • includes some changes due to autoformatting pyproject.toml

this whitelist should be shrunk and eventually removed over time. It should never get larger.

@chrisjsewell chrisjsewell changed the title mypy- disallow 'any generics' 🔧 mypy- disallow 'any generics'

Mar 26, 2024

@chrisjsewell

@codecov-commenter

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.06%. Comparing base (4e7128c) to head (7b75bb3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #865   +/-   ##
=======================================
  Coverage   90.06%   90.06%           
=======================================
  Files          24       24           
  Lines        3373     3373           
=======================================
  Hits         3038     3038           
  Misses        335      335           
Flag Coverage Δ
pytests 90.06% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

chrisjsewell

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cheers!