Argument of type "float" cannot be assigned to parameter of type "... | Real" #6790
Labels
needs repro
Issue has not been reproduced yet
settings-override
Feedback that pyrightconfig.json is taking precedence
Environment data
Code Snippet
This generates the following error, but only if there is a
[tool.pyright]
section in pyproject.toml:The error insists that float cannot be assigned to a parameter of type "... | Real", which doesn't make much sense, as floats represent real numbers
Repro Steps
Expected behavior
No error is reported on line 53, regardless of whether there is a [tools.pyright] section in pyproject.toml
Actual behavior
if there is a [tools.pyright] section in pyproject.toml, an invalid error is reported on line 53.
Logs
The text was updated successfully, but these errors were encountered: