]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74033: Fix bug when Path takes and ignores **kwargs (GH-19632)
authorYurii Karabas <1998uriyyo@gmail.com>
Sat, 14 Jan 2023 00:05:43 +0000 (02:05 +0200)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 00:05:43 +0000 (16:05 -0800)
commit080cb27829aa1a461d80504b32c362cbc14a5a75
tree910a0b68a8f976d58fd9656eb4bcec1429e2a126
parent1bc7a736837272b15ad3a7aa472977bc720d1033
gh-74033: Fix bug when Path takes and ignores **kwargs (GH-19632)

Fix a bug where `Path` takes and ignores `**kwargs` by adding to `PurePath`  class `__init__` method which can take only positional arguments.

Automerge-Triggered-By: GH:brettcannon
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2020-04-18-17-45-03.bpo-29847.Uxtbq0.rst [new file with mode: 0644]