Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Alex Waygood
975b3e901b
Always alias collections.abc.Set ( #6712 )
2021-12-27 17:09:47 +01:00
Sebastian Rittau
74cd202b2d
Annotate return type of pygments.plugin.iter_entry_points ( #6697 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-26 14:44:40 +01:00
Akuli
9efc0c0dca
pygments: Annotate several generator functions ( #6695 )
2021-12-26 13:53:41 +01:00
Anthony Sottile
3008032076
pygments.formatters.get_all_formatters yields Formatters ( #6636 )
2021-12-20 15:21:10 -08:00
Akuli
a5bc1e037f
Add mypy error codes to '# type: ignore' comments ( #6379 )
2021-11-26 07:07:56 +01:00
Alex Waygood
c685c2d6c6
Reduce use of deprecated typing aliases ( #6358 )
2021-11-23 10:56:43 +01:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Akuli
191aac3b0e
lowercase list and dict for 3rd party stubs ( #5893 )
...
* stubs/decorator/decorator.pyi
* stubs/frozendict/frozendict.pyi
* stubs/Jinja2/jinja2/nodes.pyi
* stubs/Pygments/pygments/token.pyi
* stubs/requests/requests/models.pyi
* stubs/Werkzeug/werkzeug/http.pyi
2021-08-08 13:25:18 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Akuli
e676fcabd3
Create pygments stubs ( #5759 )
...
* run stubgen
* replace individual lexers with __getattr__ in lexers/__init__.pyi
* replace individual styles with __getattr__ in styles/__init__.pyi
* import-export each formatter into formatters/__init__.pyi
* clean up slightly with quick and dirty script
* manual fixing
2021-07-11 16:27:35 +03:00