You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result = min(SUPPORT_YEARS, key=lambda x: abs(x - scope))
when we run mypy hook on it using mypy version: rev: v0.910, It throws errors as: error: Returning Any from function declared to return "SupportsLessThan"
If we change the version of mypy to rev: v0.782 an old version of the same. It works fine.
These type of mypy errors have been noticed in latest versions of mypy like refer #9656
Has anyone got this type of mypy errors and knows a fix. Please post.
Traceback
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1
scepter/utils.py:44: error: Returning Any from function declared to return "SupportsLessThan"
scepter/dataindexer.py:314: error: Returning Any from function declared to return "SupportsLessThan"
Found 2 errors in 2 files (checked 2 source files)
To Reproduce
(Write what you did to reproduce the crash. Full source code is
appreciated. We also very much appreciate it if you try to narrow the
source down to a small stand-alone example.)
Your Environment
Mypy version used: rev: v0.910
Mypy command-line flags:
Mypy configuration options from mypy.ini (and other config files):
Python version used: 3.6
Operating system and version: mac
The text was updated successfully, but these errors were encountered:
Crash Report
A code snippet like
result = min(SUPPORT_YEARS, key=lambda x: abs(x - scope))
when we run
mypy
hook on it using mypy version:rev: v0.910
, It throws errors as:error: Returning Any from function declared to return "SupportsLessThan"
If we change the version of
mypy
torev: v0.782
an old version of the same. It works fine.These type of
mypy
errors have been noticed in latest versions ofmypy
like refer #9656Has anyone got this type of
mypy
errors and knows a fix. Please post.Traceback
To Reproduce
(Write what you did to reproduce the crash. Full source code is
appreciated. We also very much appreciate it if you try to narrow the
source down to a small stand-alone example.)
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: