<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/astroid-git.git, branch v2.12.11</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.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>
<entry>
<title>Stop detecting modules compiled by `cffi` as namespace packages (#1777)</title>
<updated>2022-09-17T16:37:39+00:00</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2022-09-17T14:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=b3f0ea789ed2472aef377754957bcc1d15e35a92'/>
<id>b3f0ea789ed2472aef377754957bcc1d15e35a92</id>
<content type='text'>
Co-authored-by: Pierre Sassoulas &lt;pierre.sassoulas@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Pierre Sassoulas &lt;pierre.sassoulas@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Create a ``CacheManager`` class to manage storing and clearing caches (#1782)</title>
<updated>2022-09-17T16:37:39+00:00</updated>
<author>
<name>Daniël van Noord</name>
<email>13665637+DanielNoord@users.noreply.github.com</email>
</author>
<published>2022-09-17T13:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=df941c123f22e1cd061018230fdb831321b8aedf'/>
<id>df941c123f22e1cd061018230fdb831321b8aedf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump astroid to 2.12.9, update changelog</title>
<updated>2022-09-07T10:42:57+00:00</updated>
<author>
<name>Pierre Sassoulas</name>
<email>pierre.sassoulas@gmail.com</email>
</author>
<published>2022-09-07T10:32:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=7352e947bdf9b9c5ea51e601bbed7a063e98316d'/>
<id>7352e947bdf9b9c5ea51e601bbed7a063e98316d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed the ``__init__`` of ``dataclassess`` with multiple inheritance (#1774)</title>
<updated>2022-09-07T10:42:57+00:00</updated>
<author>
<name>Daniël van Noord</name>
<email>13665637+DanielNoord@users.noreply.github.com</email>
</author>
<published>2022-09-07T10:30:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=449a95b08e39dd2d6f3a6c3cbf4ace3055340b46'/>
<id>449a95b08e39dd2d6f3a6c3cbf4ace3055340b46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a crash on ``namedtuples`` that use ``typename`` (#1773)</title>
<updated>2022-09-07T10:42:57+00:00</updated>
<author>
<name>Daniël van Noord</name>
<email>13665637+DanielNoord@users.noreply.github.com</email>
</author>
<published>2022-09-07T07:43:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=d15466685643b47f3b8b42ae5c0ba14a429a5293'/>
<id>d15466685643b47f3b8b42ae5c0ba14a429a5293</id>
<content type='text'>

Co-authored-by: Pierre Sassoulas &lt;pierre.sassoulas@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Co-authored-by: Pierre Sassoulas &lt;pierre.sassoulas@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Bump astroid to 2.12.8, update changelog</title>
<updated>2022-09-06T16:22:19+00:00</updated>
<author>
<name>Pierre Sassoulas</name>
<email>pierre.sassoulas@gmail.com</email>
</author>
<published>2022-09-06T15:51:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/astroid-git.git/commit/?id=65bca39bbf254bc760ac9d388e5a09333eaf5c87'/>
<id>65bca39bbf254bc760ac9d388e5a09333eaf5c87</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
