Skip to content

feat: bump mypy-extensions and fix deprecations #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

s3bc40
Copy link
Contributor

@s3bc40 s3bc40 commented May 27, 2025

  • Bump mypy-extensions to >=1.1.0
  • Fix deprecations in mamushi/parsing/comparator.py and parser.py.
- return Token(type_=tokens.NEWLINE, value="")
+ return Token(type=tokens.NEWLINE, value="")
tests/test_format.py: 86 warnings
  /home/s3bc40/gh-projects/mamushi/src/mamushi/parsing/parser.py:61: DeprecationWarning: 'count' is passed as positional argument
    return re.sub(r"[ \t]+\n", "\n", code, re.MULTILINE) + "\n"

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
  • Update poetry.lock and Pipfile to reflect the changes.
  • Update pyproject.toml to ensure compatibility with the new mypy-extensions version.

Pytest: OK ✔️

- Bump mypy-extensions to >=1.1.0
- Fix deprecations in mamushi/parsing/comparator.py and parser.py.
```diff
- return Token(type_=tokens.NEWLINE, value="")
+ return Token(type=tokens.NEWLINE, value="")
```

```
tests/test_format.py: 86 warnings
  /home/s3bc40/gh-projects/mamushi/src/mamushi/parsing/parser.py:61: DeprecationWarning: 'count' is passed as positional argument
    return re.sub(r"[ \t]+\n", "\n", code, re.MULTILINE) + "\n"

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
```
- Update poetry.lock and Pipfile to reflect the changes.
- Update pyproject.toml to ensure compatibility with the new mypy-extensions version.
@benber86 benber86 merged commit 247bc24 into benber86:main May 31, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants