mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
gh-126705: Make os.PathLike more like a protocol (#126706)
it can now be used as a base class in other protocols
This commit is contained in:
parent
73cf069099
commit
a83472f49b
3 changed files with 6 additions and 0 deletions
|
|
@ -1944,6 +1944,7 @@ _PROTO_ALLOWLIST = {
|
|||
'Reversible', 'Buffer',
|
||||
],
|
||||
'contextlib': ['AbstractContextManager', 'AbstractAsyncContextManager'],
|
||||
'os': ['PathLike'],
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue