mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
docs: Update models to avoid including lazy defaults in the rendered man pages
Lazy defaults may return different results under different circumstances and we always want man pages rendered consistently.
This commit is contained in:
@@ -79,6 +79,9 @@ class Field(property):
|
||||
# model sets it to None if it equals to NotSet (for better usability)
|
||||
self.default = default
|
||||
|
||||
# a flag indicating, whether the default is a callable with lazy evalution
|
||||
self.default_is_lazy = callable(self.default)
|
||||
|
||||
# whether the field was set
|
||||
self.is_set = False
|
||||
|
||||
|
Reference in New Issue
Block a user