question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Condition can't be inferred, unable to merge overloads

See original GitHub issue

So, 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
twoertweincommented, Mar 11, 2022

Might be a mypy 0.940 issue. When I downgrade mypy to 0.931 I do not get this error.

1reaction
leyceccommented, Mar 12, 2022

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 bomb bundle of joy “soon.” Soon probably means Sunday or Monday evening. (On Saturdays, I pretend none of this is happening.)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found