FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Syntax Error when type checking 2.1.3-dev6+ on Python <=3.7 · Issue #3572 · pygame/pygame · GitHub

Repository navigation

Syntax Error when type checking 2.1.3-dev6+ on Python <=3.7 #3572

Closed

Description

$ python3.7 -m venv venv
$ . venv/bin/activate

$ pip install --pre pygame==2.1.3-dev6
$ pip install mypy==0.991  # latest at the time of writing

$ echo 'import pygame' > demo.py
$ mypy demo.py 
.../pygame/math.pyi:22: error: invalid syntax  [syntax]
Found 1 error in 1 file (errors prevented further checking)

The issue does not reproduce with 2.1.3-dev4 or earlier.

I think the error is due to the use of the positional-only argument marker in def clamp(...).

Activity

  1. PeterJCLaw commented on Nov 17, 2022

    Author

    Note: this may impact #3522

  2. ankith26 commented on Nov 20, 2022

    Contributor

    Hi, thanks for the bug report!

    I think the error is due to the use of the positional-only argument marker in def clamp(...)

    This is accurate, we shouldn't have used the / marker while we are still supporting python 3.6 and python 3.7

  3. deleted a comment from araffin on Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL