Condition can't be inferred, unable to merge overloads
See original GitHub issueSo, with 10.3 releasing, our nightly downstream dependency check build failed telling us:
mypy ./graspologic
/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/beartype/_decor/main.py:294: error: Condition can't be inferred, unable to merge overloads
Found 1 error in 1 file (checked 79 source files)
Mypy coming in with the best error messages that tell me nothing actionable there, but it at least seems like it’s sad at something in the new beartype? Any ideas @leycec? It’s entirely too Friday to have to deal with this shit, so I’m sorry about that!
https://github.com/microsoft/graspologic/runs/5513695671?check_suite_focus=true#step:6:1 - for if you would like to inspect any other of the entirely overcomplicated CICD build process that may have some impact on this
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
0.940: Condition can't be inferred, unable to merge overloads ...
Since mypy reports an overload error at a line that has no overloads, it might be a mypy error (edit: there are overloads...
Read more >The Comprehensive Guide to mypy - DEV Community
Mypy is a static type checker for Python. It acts as a linter, that allows you to write statically typed code, and verify...
Read more >C# type arguments cannot be inferred from usage in Select ...
It's section 7.5.2.12 of the C# 4 spec: The inferred return type of an anonymous function F is used during type inference and...
Read more >Mypy Documentation
Mypy complains if it can't find a stub (or a real module) for a library module ... if bool_var: # Condition can't be...
Read more >TorchScript Language Reference - PyTorch
It is treated differently from TSType because its type schema is inferred partly from ... TSModuleType cannot be used as a TorchScript type...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Might be a mypy 0.940 issue. When I downgrade mypy to 0.931 I do not get this error.
Resolved by ccac042. It turns out that if you don’t sleep, you can solve problems. Tests pass. Therefore, we pass out. 😴
Oh – and we’re dropping the
beartype 0.10.4
bombbundle of joy “soon.” Soon probably means Sunday or Monday evening. (On Saturdays, I pretend none of this is happening.)