<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/astroid-git.git, branch v2.12.12</title>
<subtitle>github.com: PyCQA/astroid.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/'/>
<entry>
<title>Bump astroid to 2.12.12, update changelog</title>
<updated>2022-10-19T08:44:58+00:00</updated>
<author>
<name>Pierre Sassoulas</name>
<email>pierre.sassoulas@gmail.com</email>
</author>
<published>2022-10-19T08:35:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=52f6d2d7722db383af035be929f18af5e9fe8cd5'/>
<id>52f6d2d7722db383af035be929f18af5e9fe8cd5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix getattr inference with empty annotation assignments (#1834)</title>
<updated>2022-10-19T08:44:58+00:00</updated>
<author>
<name>Marc Mueller</name>
<email>30130371+cdce8p@users.noreply.github.com</email>
</author>
<published>2022-10-17T09:47:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=19623e71f4a64c86499ffa052c7b2a67a8cdab77'/>
<id>19623e71f4a64c86499ffa052c7b2a67a8cdab77</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move changelog entry for dataclasses regression (#1835)</title>
<updated>2022-10-19T08:44:58+00:00</updated>
<author>
<name>Marc Mueller</name>
<email>30130371+cdce8p@users.noreply.github.com</email>
</author>
<published>2022-10-17T07:17:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=a0ee56ca03f2f4fff277ed8899d2520932975892'/>
<id>a0ee56ca03f2f4fff277ed8899d2520932975892</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent a crash when a module's ``__path__`` is missing</title>
<updated>2022-10-19T08:44:58+00:00</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2022-10-15T16:33:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=a97d958ee71a78b1f963f8693620d9b4fee2c9ac'/>
<id>a97d958ee71a78b1f963f8693620d9b4fee2c9ac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update the ``hashlib`` brain ``hash.digest`` &amp; ``hash.hexdigest`` methods. (#1827)</title>
<updated>2022-10-19T08:44:58+00:00</updated>
<author>
<name>Mark Byrne</name>
<email>31762852+mbyrnepr2@users.noreply.github.com</email>
</author>
<published>2022-10-15T08:33:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=fccbc9705433f83826c896049e05b9deae62208f'/>
<id>fccbc9705433f83826c896049e05b9deae62208f</id>
<content type='text'>
* Add the ``length`` parameter to ``hash.digest`` &amp; ``hash.hexdigest`` in the ``hashlib`` brain.

* Move content in Changelog to a different section.

Refs PyCQA/pylint#4039</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add the ``length`` parameter to ``hash.digest`` &amp; ``hash.hexdigest`` in the ``hashlib`` brain.

* Move content in Changelog to a different section.

Refs PyCQA/pylint#4039</pre>
</div>
</content>
</entry>
<entry>
<title>Fix regression in the creation of the ``__init__`` of dataclasses (#1812)</title>
<updated>2022-10-19T08:44:58+00:00</updated>
<author>
<name>Daniël van Noord</name>
<email>13665637+DanielNoord@users.noreply.github.com</email>
</author>
<published>2022-10-04T09:58:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=db46a700d253b620404ca46500ab0196c61bc486'/>
<id>db46a700d253b620404ca46500ab0196c61bc486</id>
<content type='text'>
Co-authored-by: Jacob Walls &lt;jacobtylerwalls@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Jacob Walls &lt;jacobtylerwalls@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Bump astroid to 2.12.11, update changelog</title>
<updated>2022-10-10T11:58:08+00:00</updated>
<author>
<name>Pierre Sassoulas</name>
<email>pierre.sassoulas@gmail.com</email>
</author>
<published>2022-10-10T10:12:53+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=f2308bc173172426ebd91f05b72dc5ca8a974fa6'/>
<id>f2308bc173172426ebd91f05b72dc5ca8a974fa6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>improve is_namespace check</title>
<updated>2022-10-10T11:17:55+00:00</updated>
<author>
<name>Saugat Pachhai (सौगात)</name>
<email>suagatchhetri@outlook.com</email>
</author>
<published>2022-09-21T12:08:50+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=b05a51f77e399fd7849f825a545e375ebde02fc6'/>
<id>b05a51f77e399fd7849f825a545e375ebde02fc6</id>
<content type='text'>
See https://stackoverflow.com/a/42962529.

Let's take the following contents as an example:
```python
import celery.result

```

From #1777, astroid started to use `processed_components` for
namespace check. In the above case, the `modname` is `celery.result`,
it first checks for `celery` and then `celery.result`.
Before that PR, it'd always check for `celery.result`.

`celery` is recreating module to make it lazily load.
See
https://github.com/celery/celery/blob/34533ab44d2a6492004bc3df44dc04ad5c6611e7/celery/__init__.py#L150.

This module does not have `__spec__` set.

Reading through Python's docs, it seems that `__spec__` can be set
to None, so it seems like it's not a thing that we can depend upon
for namespace checks.

See https://docs.python.org/3/reference/import.html#spec__.

---

The `celery.result` gets imported for me when pylint-pytest plugin tries
to load fixtures, but this could happen anytime if any plugin imports
packages. In that case, `importlib.util._find_spec_from_path("celery")` will raise ValueError
since it's already in `sys.modules` and does not have a spec.

Fixes https://github.com/PyCQA/pylint/issues/7488.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See https://stackoverflow.com/a/42962529.

Let's take the following contents as an example:
```python
import celery.result

```

From #1777, astroid started to use `processed_components` for
namespace check. In the above case, the `modname` is `celery.result`,
it first checks for `celery` and then `celery.result`.
Before that PR, it'd always check for `celery.result`.

`celery` is recreating module to make it lazily load.
See
https://github.com/celery/celery/blob/34533ab44d2a6492004bc3df44dc04ad5c6611e7/celery/__init__.py#L150.

This module does not have `__spec__` set.

Reading through Python's docs, it seems that `__spec__` can be set
to None, so it seems like it's not a thing that we can depend upon
for namespace checks.

See https://docs.python.org/3/reference/import.html#spec__.

---

The `celery.result` gets imported for me when pylint-pytest plugin tries
to load fixtures, but this could happen anytime if any plugin imports
packages. In that case, `importlib.util._find_spec_from_path("celery")` will raise ValueError
since it's already in `sys.modules` and does not have a spec.

Fixes https://github.com/PyCQA/pylint/issues/7488.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ``_value2member_map_`` member to the ``enum`` brain. (#1820)</title>
<updated>2022-10-10T11:17:55+00:00</updated>
<author>
<name>Mark Byrne</name>
<email>31762852+mbyrnepr2@users.noreply.github.com</email>
</author>
<published>2022-10-08T08:30:13+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=eafc0ff093fdd55d892d023887984617742f4daf'/>
<id>eafc0ff093fdd55d892d023887984617742f4daf</id>
<content type='text'>
Refs PyCQA/pylint#3941</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs PyCQA/pylint#3941</pre>
</div>
</content>
</entry>
<entry>
<title>Bump astroid to 2.12.10, update changelog</title>
<updated>2022-09-17T16:37:39+00:00</updated>
<author>
<name>Pierre Sassoulas</name>
<email>pierre.sassoulas@gmail.com</email>
</author>
<published>2022-09-17T15:18:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=9c3b002f7825b7f5743a2acbb46010ab73e7e516'/>
<id>9c3b002f7825b7f5743a2acbb46010ab73e7e516</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
