diff options
| author | Damien Baty <damien@damienbaty.com> | 2021-01-18 12:36:56 +0100 |
|---|---|---|
| committer | Damien Baty <damien@damienbaty.com> | 2021-01-18 13:06:05 +0100 |
| commit | 294623e1f1c4a83c193e6eb8c61cf1cb7233b8b9 (patch) | |
| tree | ca2138916a5ebb754937312ef852cff9a63ecbfc /ChangeLog | |
| parent | c9fd1934e9c49d9052f64439fc7ea82026bce00f (diff) | |
| download | astroid-git-294623e1f1c4a83c193e6eb8c61cf1cb7233b8b9.tar.gz | |
brain: Add `__class_getitem__` to `subprocess.Popen` starting from Python 3.9
This is necessary for pylint to detect that `subprocess.Popen` is
subscriptable, starting from Python 3.9 (see PyCQA/pylint#4034).
$ python3.9
>>> import subprocess
>>> subprocess.Popen.__class_getitem__
<bound method GenericAlias of <class 'subprocess.Popen'>>
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7,6 +7,10 @@ What's New in astroid 2.5.0? ============================ Release Date: TBA +* Add ``__class_getitem__`` method to ``subprocess.Popen`` brain under Python 3.9 so that it is seen as subscriptable by pylint. + + Fixes PyCQA/pylint#4034 + * Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy.random` brain. Fixes PyCQA/pylint#3856 |
