Jacob Walls

Results 456 comments of Jacob Walls

I'm doubtful this is the best thing we can do, but a quick-n-dirty might be some variation of: ```diff diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py index efd5439b..dbe5872e 100644 --- a/astroid/nodes/scoped_nodes/scoped_nodes.py +++ b/astroid/nodes/scoped_nodes/scoped_nodes.py...

Slimmer reproducer: ```py # pylint: disable=missing-module-docstring,missing-class-docstring, missing-function-docstring class BugReport: @property def host(self): return self._host @host.setter def host(self, value: str): self._host = value @property def timezone(self): return self.host.lower() # self.host should...

Hi @furgerf, you're quite right that `--prefer-stubs` is naive and just exclusively looks at stubs. Part of the reason we immediately put the feature under a feature flag was that...

Hi @kakadus. This little false negative is currently intentional and [described here](https://pylint.readthedocs.io/en/latest/user_guide/messages/error/possibly-used-before-assignment.html) (see the discussion under `if guarded()`. The question is, should we remove it? We didn't want to spam...

There are a couple things going on here: - the type annotation `x: B` - the control flow that could determine from `== "a"` that only B() instances are returned...

Thanks for the follow-up. I'm happy to refocus on that last issue with `__getattr__()`. Once pylint determines there is a dynamic `__getattr__` here: https://github.com/pylint-dev/pylint/blob/a48cd4c6a872b6565bc58030b74585812f327f36/pylint/checkers/typecheck.py#L471 ... it then proceeds to ignore...

Thanks for the report. Will need to discuss in tandem with #9767.

It's a tuple... ```py >>> try: ... raise ExceptionGroup('', [TypeError(), TypeError()]) ... except ExceptionGroup as eg: ... print(type(eg.exceptions)) ... ``` But astroid think's it's a class: ```py >>> from astroid...

Will leave this in a failing state until we remove support for Python 3.8 in #9774.

DO NOT MERGE -- discussion on #9770 suggests holding until 4.0