Bug 2006237

Summary: outdated version of typeshed
Product: [Fedora] Fedora Reporter: Petrov Denis <aivendil3>
Component: python-typeshedAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: gwync, reallylongword
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-26 00:16:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petrov Denis 2021-09-21 09:56:29 UTC
Description of problem:
python-typeshed is outdated. For example in python 3.8 appears additional parameter for Path.unlink(missing_ok=True), which is not represented in python-typeshed. And mypy generate error for valid python 3.9 script. In actual git repo this problem is solved

Version-Release number of selected component (if applicable):
rpm -q python-typeshed-0.1-0.20191011git2.fc34.noarch  
python-typeshed-0.1-0.20191011git2.fc34.noarch


How reproducible:


Steps to Reproduce:
$ cat << EOF > test.py 
from pathlib import Path
test = Path('test/path')
test.unlink(missing_ok=True)

EOF
$ mypy test.py



Actual results:
test.py:3: error: Unexpected keyword argument "missing_ok" for "unlink" of "Path"
Found 1 error in 1 file (checked 1 source file)

Expected results:
No error

Comment 1 Gwyn Ciesla 2021-09-22 16:19:36 UTC
Upstream recommends that we retire python-typeshed and let mypy use it's own copy. I'm pushing updates to that effect.

Comment 2 Fedora Update System 2021-09-22 16:25:15 UTC
FEDORA-2021-41e6df0405 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-41e6df0405

Comment 3 Fedora Update System 2021-09-22 16:25:16 UTC
FEDORA-2021-8e55112d44 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8e55112d44

Comment 4 Fedora Update System 2021-09-22 18:48:13 UTC
FEDORA-2021-41e6df0405 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-41e6df0405`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-41e6df0405

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-09-23 19:41:31 UTC
FEDORA-2021-8e55112d44 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8e55112d44`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8e55112d44

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-09-26 00:16:09 UTC
FEDORA-2021-41e6df0405 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2021-10-01 01:26:53 UTC
FEDORA-2021-8e55112d44 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.