You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import unittest
class MyTestCase(unittest.TestCase):
def test_foo(self):
self.assertAlmostEqual(1, 2.0)
results in error:
pyright 1.1.255
/tmp/test_pyright/aa.py
/tmp/test_pyright/aa.py:6:35 - error: Argument of type "float" cannot be assigned to parameter "second" of type "_T@assertAlmostEqual" in function "assertAlmostEqual"
Type "float" cannot be assigned to type "int"
"float" is incompatible with "int" (reportGeneralTypeIssues)