minitorch / Module-1

Module 1 - Autodifferentiation
20 stars 204 forks source link

allow using latest mypy to avoid error prompt of numpy #15

Open xuesu opened 8 months ago

xuesu commented 8 months ago

If we still use mypy==0.971, then mypy will report the following error, which is based on this bug:https://github.com/python/mypy/issues/13627

xxx/lib/python3.10/site-packages/numpy/__init__.pyi:636:48: error: Positional-only parameters are only supported in Python 3.8 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)