basedmypy
basedmypy copied to clipboard
Call to incomplete function could be optimized to only account for the parameters being passed
def foo(a: int, b=...) -> None: ...
foo(1) # error: call to incomplete function
This error isn't really needed because no untyped parameters are being passed
Workaround
Type the unused parameter as Never
what about its return type? besides i think it's sus to call untyped functions regardless of if you are actually providing any of the parameters, imo it should still show an error
Maybe that's a bad egg
Seeing as the main motivation for this feature is to not accidentally call partially inferred functions, this would be very low priority, if we even want it at all.