Bug 2006237 - outdated version of typeshed
Summary: outdated version of typeshed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-typeshed
Version: 34
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-21 09:56 UTC by Petrov Denis
Modified: 2021-10-01 01:26 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-09-26 00:16:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github python typeshed issues 6062 0 None open Distro package installation question. 2021-09-22 14:57:26 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.