Skip to content

More "syntax error in type comment"s #9916

@benknoble

Description

@benknoble

Bug Report

Related to #8627

To Reproduce

# cat <<DOG > some.py
import subprocess
DOG
# mypy some.py | head
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:50: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:63: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:66: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:67: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:77: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:78: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:79: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:80: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:81: error: syntax error in type comment
/Users/Knoble/Library/Python/3.9/lib/python/site-packages/mypy/typeshed/stdlib/3/subprocess.pyi:82: error: syntax error in type comment
# trimmed …

Expected Behavior

No issues

Actual Behavior

Unable to effectively sort through messages because of the ~360 from this module alone

Your Environment

  • Mypy version used: 740 and 790
  • Mypy command-line flags: none
  • Mypy configuration options from mypy.ini (and other config files): none
  • Python version used: 3.9.1
  • Operating system and version: macOS Mojave 10.14.6 18G5033 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions