Closed henryiii closed 6 months ago
🤦 Thanks for catching this!
Thanks for flagging. We are in the middle of overhauling our test suites, which have become hard to maintain (it's the next thing on the road map!), and yes, we have not fully addressed warnings as you can tell. Apologies for you having run into this issue. This will be fixed tonight when I am home from work.
Issue should be fixed for 1.8.1
.
Thanks!
Re @henryiii 's comment:
Ignoring this one then hits another: DeprecationWarning:
highlighter
config option is deprecated. Please do one of the following instead: either set...
I believe that's what I've run into in #197 and have opened that issue as a new one - hope I've got that right.
🫠 I dropped the ball on this lol. Gimme a day.
On rich-click 1.8.0, rich-click is triggering it's own warning:
This is breaking test suites that turn on deprecation warnings, but are not using any deprecated functionality. Deprecation warnings should only be emitted by third party code (and test suites should always enable all warnings as errors;
[tool.pytest.ini_options] filterwarnings = ["error"]
inpyproject.toml
for pytest, for example).Ignoring this one then hits another:
DeprecationWarning: `highlighter` config option is deprecated. Please do one of the following instead: either set...
PS: see https://docs.python.org/3.13/library/warnings.html#warnings.deprecated if you don't mind adding a Python 3.13 backport (it's in
typing_extensions
for older Pythons). A nice feature of this is it is or will be supported by type checkers too.