Skip to content
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

pygments: Fix return type of pygments.lexers.guess_lexer_for_filename #13515

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

jelle-openai
Copy link
Contributor

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

rich (https://github.com/Textualize/rich)
- rich/syntax.py:385: error: Incompatible types in assignment (expression has type "LexerMeta", variable has type "Lexer | None")  [assignment]
+ rich/traceback.py:642: error: "Lexer" has no attribute "name"  [attr-defined]

@srittau srittau merged commit ac8f263 into python:main Feb 19, 2025
43 checks passed
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