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

Guess .pyi files as Python #1996

Merged
merged 1 commit into from Sep 25, 2023
Merged

Conversation

ryderben
Copy link
Contributor

@ryderben ryderben commented Sep 25, 2023

Python .pyi files are defined in PEP 484 as Stub Files. They have the same syntax as Python modules, except are only for use by the type checker, and are not used at runtime. This change recognizes files with this extension as Python stub files.

Similar behaviour was introduced to Pygments in pygments/pygments#2231.

@ryderben ryderben changed the title Guess .pyi files as Python Guess .pyi files as Python Sep 25, 2023
@ryderben ryderben changed the title Guess .pyi files as Python Guess .pyi files as Python Sep 25, 2023
@tancnle
Copy link
Collaborator

tancnle commented Sep 25, 2023

Thank you for the contributions @ryderben ❤️ LGTM 🚀

@tancnle tancnle added this pull request to the merge queue Sep 25, 2023
Merged via the queue into rouge-ruby:master with commit b9d05fd Sep 25, 2023
7 checks passed
@hryanjones
Copy link

Thanks for the quick review! Sorry if I missed it somewhere else, but I'm curious what the process is for this to be rolled into a new release? (e.g. the 4.1.3 release)

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.

None yet

3 participants