In general such problems are due to a misuse of inheritance. In this case, I think json shouldn't be an option of the base class that ends up being exposed to the user. We should have a way for the widgets developers to set this at the class level without the parameter being an option for the widget user.
Le lun. 22 févr. 2021 à 13:38, elParaguayo <[email protected]> a écrit : > I was looking at a pull request for a widget ( > https://github.com/qtile/qtile/pull/2240) and noticed that one of their > defaults said it shouldn't be changed. As a result, I suggested removing it > from the defaults section and hard coding the value. > > The problem is that, as that parameter is set as a default in an inherited > class (here, GenPillUrl) the parameter is automatically included in the > docs. > > I was therefore wondering if there is a way to suppress inherited defaults > from being included in the docs. > > This is tricky as there will be times when it would be useful to show them. > > Interested in thoughts on this. > > -- > You received this message because you are subscribed to the Google Groups > "qtile-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/qtile-dev/0cdfed0d-063c-4ee4-b93a-a3f9df443ebfn%40googlegroups.com > <https://groups.google.com/d/msgid/qtile-dev/0cdfed0d-063c-4ee4-b93a-a3f9df443ebfn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Guillaume Gelin -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/CAPn4x%2Bq%2BWrSi4%3DEG3ATZTYV_ukLXsk5c%3DO%3Ddj7QgdXWbX880UA%40mail.gmail.com.
