python-language-server
python-language-server copied to clipboard
Python Linter doesn't recognize that invalid data is being passed to a function
@rchiodo commented on Tue Apr 16 2019
I have a function defined like so:
def verify_dataframe_info(vars, name: str, capsys, hasInfo: bool):
And I had code like so:
verify_dataframe_info(vars, 'se', capsys, true)
The 'true' value should be 'True'
Linter didn't recognize this mistake.
There is only linter for undefined variables. No code that would check type mismatch.
I'm assuming this would then count as a feature enhancement? Please feel free to close this issue (created internally by our team)
Of course it is, just saying its not a bug :-)