Jacob Walls

Results 508 comments of Jacob Walls

The original proposal is more like this from the stdlib: ```py self.assertLogs(... self.assertNoLogs(... ``` If we add a new assertMessages, we have "two ways to do it" unless we deprecate...

@mbyrnepr2 thanks for jumping on triage. I'm assuming it's the get_source_file() change we did in astroid. Did you test with a same named .py file next to the .pyi?

Thanks @henryiii. I think we should consider hotfixing a reversion of https://github.com/pylint-dev/astroid/pull/2375 in astroid. It's not really ready for primetime. cc/ @Pierre-Sassoulas

Thanks! Simpler repro: ```python import sys lambda code: [sys.exit(code)] print('hello') ```

Regression in bed42badfe6be6317e6dc6406433218287ded3b9.

This line shouldn't assume direct parentage by `lambda`, we need to go higher up (in the bug report, a list intervenes first): https://github.com/pylint-dev/pylint/blob/bed42badfe6be6317e6dc6406433218287ded3b9/pylint/checkers/base/basic_checker.py#L666 cc / @clavedeluna

Hey thanks for reporting :wave: This one would need some investigation, as there's a [symphony of things going on](https://github.com/opencv/opencv/blob/4.x/modules/python/package/cv2/__init__.py) in cv2 to generate cv2.error. 📯