FS#58482 - [mypy] typeshed submodule is missing from the sources

Attached to Project: Community Packages
Opened by A. Bosch (progandy) - Monday, 07 May 2018, 13:07 GMT
Last edited by Morten Linderud (Foxboron) - Monday, 07 May 2018, 15:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
mypy can't find any stub files for modules.

<string>:1: error: No library stub file for standard library module 'math'
<string>:1: note: (Stub files are from https://github.com/python/typeshed)
<string>:1: error: Cannot find 'builtins' module. Typeshed appears broken!

The typeshed submodule is not included in the github archive. It was included in the pypi.org archive used in the AUR package.

Additional info:
* package version(s) 0.600-2
* config and/or log files etc. Nothing more than the lines mentioned above.

https://bbs.archlinux.org/viewtopic.php?pid=1784079#p1784079

This is the archive of the typeshed commit used in the submodule as of mypy 0.600
https://github.com/python/typeshed/archive/2dc7d39af598ea594a978bca81ba743cf20f96b2.zip


Steps to reproduce:
Install mypy 0.600-2 and try to run this:
$ mypy -c "import math; print(math.ceil(1.1))"

Running it directly with python works fine:
$ python -c "import math; print(math.ceil(1.1))"
2
This task depends upon

Closed by  Morten Linderud (Foxboron)
Monday, 07 May 2018, 15:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 0.600-3

Loading...