summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBatuhan Taşkaya <batuhanosmantaskaya@gmail.com>2020-04-07 21:37:19 (GMT)
committerGitHub <noreply@github.com>2020-04-07 21:37:19 (GMT)
commitf9dd51e7db27d04e0b716d41a2804d5acbf145d1 (patch)
tree66d0468e9668b0537e380e6f499f4d8a89521e20 /Modules
parent87255be6964979b5abdc4b9dcf81cdcfdad6e753 (diff)
downloadcpython-f9dd51e7db27d04e0b716d41a2804d5acbf145d1.zip
cpython-f9dd51e7db27d04e0b716d41a2804d5acbf145d1.tar.gz
cpython-f9dd51e7db27d04e0b716d41a2804d5acbf145d1.tar.bz2
bpo-39481: Make os.DirEntry generic (GH-19415)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4264bf1..57f1487 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -12976,6 +12976,8 @@ static PyMethodDef DirEntry_methods[] = {
OS_DIRENTRY_STAT_METHODDEF
OS_DIRENTRY_INODE_METHODDEF
OS_DIRENTRY___FSPATH___METHODDEF
+ {"__class_getitem__", (PyCFunction)Py_GenericAlias,
+ METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
{NULL}
};